Sunday 15 August 2010

c# - How to process a HTTP POST? -


I have an HTTP handler that receives an HTTP POST. Header has an HTTP post message -

  POST /ibe/example.com HTTP / 1.1 Content-Length: 445 Content-Type: Application / x-www-form-urlencoded; Accept Charset = UTF-8: * / * Host: 202.177.46.142 Charset = UTF-8 and Ultimate 1 = Val 1 and Ultimate 2 = val2   

My code contains handler - < / P>

  var v1 = context.Request ["param1"]; Var V2 = Reference Request ["absolute 2"];   

But that does not work.

I think you should use:

  var V1 = context.Request.Param ["param1"]; Var V2 = Reference request. Sin ["supreme 2"];   

Here is an example: And here

No comments:

Post a Comment