HTTP Post request

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#
 
N

Nick Malik [Microsoft]

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.
--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top