Home > Net >  NANCY POST use
NANCY POST use

Time:10-02

Namespace Nancy. Web
{
Public class HomeModule: NancyModule
{
Public HomeModule ()
{
Get ("/", r=& gt; "Hello, Nancy, I am running on ASP.NET Core");
Get ("/{name} ", r=& gt; "Hello," + r.n ame);


Post ("/loadstr ", r=& gt;
{
Var strRecive=this. Bind (a);
Return strRecive. Inputstr;
});
}
}
}
This is written in c #, I use VB.net, the above POST part I can't understand, estimates that the string is sent POST?
I want to send post by VB.net, do not know how transfer string receive?
Client command: PostData (" http://localhost:9000/admin/8976 ", "7311988"), that the 7311988 how to get?
On the server side, the POST should be how to write? I know Me. Post ("/admin/{lp} ")=AddressOf Hellopost
The lp can accept 8976731988 characters how to receive?
  • Related