GLBasic forum

Main forum => GLBasic - en => Topic started by: djtoon on 2011-May-31

Title: NETWEBGET twice error
Post by: djtoon on 2011-May-31
i call netwebget once and its ok
then i call the same line agai and i get an error
any ideas?

10x
Title: Re: NETWEBGET twice error
Post by: Kitty Hello on 2011-May-31
post some code (or PM me) please. Is this also on Windows?
Title: Re: NETWEBGET twice error
Post by: djtoon on 2011-May-31
yes
i did this
LOCAL str$="GetNameID.aspx?Name="+tast$
LOCAL ok%=NETWEBGET("bdprojas.channel.com", "/"+str$, 80, PLATFORMINFO$("DOCUMENTS")+"/name.txt")

its ok once but the second time its not working i get ok%=0
Title: Re: NETWEBGET twice error
Post by: Kitty Hello on 2011-May-31
I get 0 all the time, since "SOCK_CONNECT" to "bdprojas.channel.com" fails (timeout).
Title: Re: NETWEBGET twice error
Post by: Moru on 2011-May-31
I don't know how you plan to use the result from that but if you want to just use that variable you ask from the server, use NETWEBGET$ instead, then you get it into a string and don't have to save it to a file first.

http://www.downforeveryoneorjustme.com/bdprojas.channel.com reports the site as down.
Title: Re: NETWEBGET twice error
Post by: Slydog on 2011-May-31
Since it only happens on the 2nd attempt, could it be because the file already exists locally?
Or does it matter, or is it still there?  You may try deleting it before the NETWEBGET() command.
Just speculating . . .