Page 1 of 1

ReceiveHTTPFile vs UrlDownloadToFile (Win XP)

Posted: Thu Apr 30, 2009 7:51 pm
by bobobo
i stumbled upon when trying to get some wikipedia-content

Code: Select all

url.s="http://de.wikipedia.org/wiki/Wikipedia:Hauptseite"
lokalu.s="D:\!\testu.log"
lokalr.s="D:\!\testr.log"
;lokal.s="D:\!\schnasel.log"
InitNetwork()
ReceiveHTTPFile(url,lokalr) ; lokalr will be empty , no success with receiveHTTPFile 

URLDownloadToFile_(0,url,lokalu,0,0); lokalu is ok 

OpenFile(0,lokalr)
While Eof(0)=0
Debug ReadString(0)
Wend
CloseFile(0)
does somebody have a explanation?
maybe a bug?

Posted: Thu Apr 30, 2009 8:25 pm
by AND51

Code: Select all

Debug CheckFilename("D:\!\testu.log")     ; returns zero!??
This code might be related to your problem. An exclamation mark can be used as single character for a directory name (tested on Vista).

Posted: Mon May 04, 2009 9:39 am
by bobobo
thanks .. no .. the file exists , but it's empty

ReceiveHTTPFile can't download this Website (i had no success with downloading anything of the wikipedia with ReceiveHTTPFile)

urldownloadtofile_(..) can download it.
-----
nochmal auf deutsch : ReceiveHTTPFile hat scheinbar ein Problem mit
WikipediaSeiten, UrldownloadtoFile hat dieses Problem nicht.

Posted: Wed May 06, 2009 9:51 pm
by X360 Andy
same problem with youtubelinks
ReceiveHTTPFile -> debugs = 0
urldownloadtofile_ -> debugs = 1