Download file from remote internet server

Author Message
nurimaso

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 7/22/2010
  • Status: offline
Download file from remote internet server Thursday, July 22, 2010 9:50 PM (permalink)
0
I'm creating a site to resell several products from a distributor. I have an URL where every day there's an update of products  information (properties, prices, stock,...) in a CSV file. I want to download this file to my local PC to transfer it into a database.
I found a code to download the file using MSXML2.ServerXMLHTTP but the result doesn't identify special characters (ñ,ç,é,í,...), that can be solved with "chrw(ascw(chr(ascb(midb(body8209,i+1,1)))))"
The script works, but it is not good for me because I'm talking of a file with 4000 or 5000 products and I calculated that it takes more or less 6/8 hours to convert special characters.
Could someone help me with a script that I could execute every day and download the file from the remote internet server to mine or perhaps include to a database directly?
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9