automate web submission with VB.net?

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

Guest

We have a third party web site we use to send XML files from our database
through, is there a way I can have our VB.NET app pull up the website, paste
the XML into the textbox and submit it and then close the website?

Thanks!
Daniel
 
| We have a third party web site we use to send XML files from our database
| through, is there a way I can have our VB.NET app pull up the website,
paste
| the XML into the textbox and submit it and then close the website?

i'd avoid the kludge of using a browser in an "automated" solution. you can
post data directly to the website using the httpwebrequest/httpwebresponse
classes in .net. you'd also probably need the httputility to encode the xml
before posting it (this depends though). anyway, those are the keywords for
you to lookup either in help or google. it only takes about 10 lines of code
to cleanly handle the post and response and there are plenty of examples on
the net.

hth,

steve
 
Back
Top