How to HTTP POST an XML file from aspx?

  • Thread starter Thread starter les
  • Start date Start date
L

les

I have to send xml data to a remote web address via http post.

How can I do this in an aspx page using vb.net?

Thanks
Leslie
 
Simply insert the XML data into the value attribute of the input tag. Then
specify the method of the form as POST, and the action the web page you want
to post it to. I figure you are going to either use the hidden text in the
form, or a text box.

Keenan
 
Thanks Keenan, but I want to avoid using a form for this. The server
will send an xml page in response to the post and I want to be able to
handle this in my application rather than displaying raw xml to the
user.

Leslie
 
les said:
I have to send xml data to a remote web address via http post.

How can I do this in an aspx page using vb.net?

Use System.Net.WebRequest/WebResponse.

Cheers,
 
Back
Top