How to HTTP POST an XML file from aspx?

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
 
K

Keenan Newton

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
 
L

les

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
 
J

Joerg Jooss

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top