|
-
Mar 30th, 2006, 09:08 PM
#1
Thread Starter
New Member
Remote File Retrieval
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?
Last edited by coldfusion_man; Mar 30th, 2006 at 10:46 PM.
-
Mar 30th, 2006, 10:12 PM
#2
Frenzied Member
Re: Remote File Retrieval
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
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
-
Mar 30th, 2006, 10:48 PM
#3
Thread Starter
New Member
Re: Remote File Retrieval
Sorry about that. Any suggestions on the question at hand?
-
Apr 2nd, 2006, 06:39 AM
#4
Re: Remote File Retrieval
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|