Results 1 to 4 of 4

Thread: Remote File Retrieval

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    9

    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.

  2. #2
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    9

    Re: Remote File Retrieval

    Sorry about that. Any suggestions on the question at hand?

  4. #4
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    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
    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width