Page 1 of 1

ReceiveHTTPFile doesn't give text

Posted: Wed May 29, 2024 10:56 pm
by WilliamL
I used to run this and got text but now I get (see below). How do I get the text?

Code: Select all

  Filename$ = SaveFileRequester("Where to save txt file", "", "", 0)

  If ReceiveHTTPFile("http://finance.yahoo.com/q?s=%5EDJI", Filename$)
    Debug "File recieved and written to disk. If the remote file was not found, it will contains the webserver error."
  Else
    Debug "No file recieved (network error)."
  EndIf
output

Code: Select all

ãÏ}i{„∂µÁ€_¡xû§v+—‹πNÓ¨ôifÎxí‹4O^?	IS¢LR≤e◊ˇ˝=XHÇ$(J∂<uÔuñëÄÉ≥„¯€7AÏg´9í&Ÿ4˙˛O√Ië7Ô°YˇÁì=)õ†):fiã¬Ò$€ì/Û˙~≈I?ı+_¸»K”„Ω•gY<óf(ÓèÑf“»£‘°ΩÔˇ$¡?õ /†?…„eû‰Oº$EŸÒfi"ıùΩ˙ÁôáZÜËb'∏≠xñ°øÉlr†eË£>yËI·,ÃB/Dzy:V[Ä≈^6å>∞Äı'q É∆fl‰ï7âcŸèß<î(úùI	ä阶fi,!\m톗Òfia˛B˛í∆3ÆŒü˛Îøh5ZNñY(KOΩ˘¸0úNô7åP˛Vìüœ_º¸«ooˇGˆ”tè6ñf´•Ñ2ººßA*ÎüfiΩùh”A|
ìà˘≈GœO>ÖÍnÄæÖ¢Ú’áwösÒ˘∑›Ä|Û)õ˝Â©ä^̉4\åÂg»ILˇ„ª›¿|∂»2ËËã’«ó˙Úa7@OPѸL~˛ã˘ÒÈØ'ˆéH…˜„$„ŸõM¡<Õˇ˘^€Qá/¬Ãü»œ¸)z{ˆÀé(‡≥7LÂÁ?˝™_˛˝Õ”Åå„(

Re: ReceiveHTTPFile doesn't give text

Posted: Thu May 30, 2024 8:28 am
by BarryG
Probably the same situation as here -> https://www.purebasic.fr/english/viewtopic.php?t=80352

Re: ReceiveHTTPFile doesn't give text

Posted: Thu May 30, 2024 9:09 am
by infratec
I get a readable file with PB 6.11B3 x86 on WIn10 X64.

Re: ReceiveHTTPFile doesn't give text

Posted: Thu May 30, 2024 1:28 pm
by Kiffi
infratec wrote: Thu May 30, 2024 9:09 am I get a readable file with PB 6.11B3 x86 on WIn10 X64.
same here with PB 6.11B3 x64

Re: ReceiveHTTPFile doesn't give text

Posted: Thu May 30, 2024 4:54 pm
by WilliamL
Thanks for the link BarryG. Interesting but no solutions.. but I will look into using the webgadget.

It's odd that it used to work (everytime) and I think that it does work sometimes. It is also interesting that it is working in Windows.

I suppose it could be a bug on the Mac.

[Update]

I used

Code: Select all

http://finance.yahoo.com/q?s=%5EDJI*.gz
and it worked... and, today, it works without it! Go figure. :shock: