NETWEBGET twice error

Previous topic - Next topic

djtoon

i call netwebget once and its ok
then i call the same line agai and i get an error
any ideas?

10x

Kitty Hello

post some code (or PM me) please. Is this also on Windows?

djtoon

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

Kitty Hello

I get 0 all the time, since "SOCK_CONNECT" to "bdprojas.channel.com" fails (timeout).

Moru

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.

Slydog

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 . . .
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]