ReceiveHTTPFile vs UrlDownloadToFile (Win XP)

Just starting out? Need help? Post your questions and find answers here.
User avatar
bobobo
Enthusiast
Enthusiast
Posts: 206
Joined: Mon Jun 09, 2003 8:30 am

ReceiveHTTPFile vs UrlDownloadToFile (Win XP)

Post 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?
사십 둘 .
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post 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).
PB 4.30

Code: Select all

onErrorGoto(?Fred)
User avatar
bobobo
Enthusiast
Enthusiast
Posts: 206
Joined: Mon Jun 09, 2003 8:30 am

Post 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.
사십 둘 .
X360 Andy
New User
New User
Posts: 2
Joined: Thu Dec 25, 2008 9:13 pm
Location: Germany

Post by X360 Andy »

same problem with youtubelinks
ReceiveHTTPFile -> debugs = 0
urldownloadtofile_ -> debugs = 1
Post Reply