Problem with NETWEBGET

Previous topic - Next topic

Neurox

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
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

MrTAToad

Have you previously used a SOCKET command and not closed it ?

Neurox

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  :(
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

MrTAToad

Sure you have checked your web code to return correct values...

Neurox

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()

Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

MrTAToad

And the PHP/HTML code ?

Neurox

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:
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

MrTAToad

Better post a bug report then!