GLBasic forum

Main forum => GLBasic - en => Topic started by: Neurox on 2012-Mar-31

Title: Problem with NETWEBGET
Post by: Neurox on 2012-Mar-31
Hi,
I've a strange error with NetWebGet.
I've create a system to send "high score" to my website.
Code (glbasic) Select

LSdati$=NETWEBGET$("www.borzini.it",LScomand$, 80,1024,5000)

If I execute the code from my computer Mac or VirtualBox/WindowsXP it's run very well but
if I execute from iPhone (iOS 5.1) or iPod (iOS4) return to me this error:
error 57 "socket is not connected"

Any idea ?

thanks,
Paolo
Title: Re: Problem with NETWEBGET
Post by: MrTAToad on 2012-Mar-31
Have you previously used a SOCKET command and not closed it ?
Title: Re: Problem with NETWEBGET
Post by: Neurox on 2012-Apr-01
QuoteHave you previously used a SOCKET command and not closed it ?
Yes, the program start with Sock_init() and ended with Sock_close().

I've substituted the
NETWEBGET$("www.borzini.it",LScomand$, 80,1024,5000)
with
NETWEBGET("www.borzini.it",LScomand$, 80,LSsaved$,5000)

now the High Score sended correctly in web page but the error 57 always returned.
It's very very strange  :(
Title: Re: Problem with NETWEBGET
Post by: MrTAToad on 2012-Apr-01
Sure you have checked your web code to return correct values...
Title: Re: Problem with NETWEBGET
Post by: Neurox on 2012-Apr-01
Quote from: MrTAToad on 2012-Apr-01
Sure you have checked your web code to return correct values...

Yes sure,
I call NETGETLASTERROR$() after NETWEBGET()

Title: Re: Problem with NETWEBGET
Post by: MrTAToad on 2012-Apr-01
And the PHP/HTML code ?
Title: Re: Problem with NETWEBGET
Post by: Neurox on 2012-Apr-02
Quote from: MrTAToad on 2012-Apr-01
And the PHP/HTML code ?
Is perfect!  =D
I think the problem is Netwebget$ with iPhone becaus the version on Windows and iMac function very well  :doubt:
Title: Re: Problem with NETWEBGET
Post by: MrTAToad on 2012-Apr-02
Better post a bug report then!