Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 04/29/26 18:09
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 5,733 guests, and 39 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ukgamer, valino, juergenwue, VladMak, Geir
19210 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
http_transfer returns garbage if connection to url is refused #447270
11/30/14 19:15
11/30/14 19:15
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
http://zorro-trader.com/manual/en/http.htm
says
The function returns a temporary string containing the web page content for further evaluation.
and
All functions return 0 if an error occured and nonzero if everything went ok (if not otherwise mentioned in the function description).

I find that when url cannot be reached because the connection was refused, http_transfer returns a pointer to the string "ˆÀ". I guess this is uninitialized memory. Please make http_transfer return null in this error case so it can be reliably detected.

To reproduce this error mode, set url to http://localhost:8888 where localhost does not have a service running at port 8888.

Re: http_transfer returns garbage if connection to url is refused [Re: GPEngine] #447287
12/01/14 18:00
12/01/14 18:00
Joined: Jul 2000
Posts: 28,094
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,094
Frankfurt
Thanks, will check.


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1