HTTP Post request

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I want to send a HTTP post request. The url will be given in the format

http://host:port/remainder-of-URL
where
host is the DNS name or IP address of the host where the receiver is
listening for incoming HTTP connections.

port is the TCP port on which the receiver is listening for incoming HTTP
connections. The port and the preceding colon character may be omitted, in
which case the port defaults to 80.

remainder-of-URL is the URL to which an HTTP POST operation will be directed.

I also need to send the request with some XML conten as a payload.

How to do this in C#
 
Hello Sushi,

yep... that's HTTP. All post requests use this format. The standard is
documented at www.w3c.org

Here's the place to start:
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemnethttpwebrequestclasstopic.asp

Here are some other useful links
http://www.developerfusion.com/show/4637/
http://aspnet.4guysfromrolla.com/articles/122204-1.aspx
http://www.developersdex.com/xml/message.asp?p=1123&r=3988182


--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
 
Back
Top