I need to retrieve an xml file via the http protocol, stream it back to a server, and have it delimited using a very simple form (basically, a submit button on a form). Any ideas on how to do this?
Printable View
I need to retrieve an xml file via the http protocol, stream it back to a server, and have it delimited using a very simple form (basically, a submit button on a form). Any ideas on how to do this?
dont post your email add anywhere on the net, some email spammers might take a glance at it and if that happens, you'll be sorry. this is just a friendly advise for your own sake.
please edit your post and remove your email ad.
you can view all the answers to your post in this forum anyway
Sorry about that. Any suggestions on the question at hand?
go to www.winsockvb.com and learn how to use the winsock control. It will allow you to connect to a website or host, and send/receive data, heres what you need for the program you want....
-connect to the domain name e.g. "xmlstuff.com"
-send a HTTP request for your file, the request will be like....
GET /folder1/folder2/something.xml HTTP/1.1 (two NewLines)
-buffer all of the received data into a string
-split the string at the first two newlines (vbcrlf & vbcrlf), this will cut off the HTTP headers which you dont want
-parse the xml data as you want to