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,
 

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

Back
Top