Socket downloads .php file only half. - 15/10/04 05:52 PM
I'm making a script to search for profiles on a livejournal kind of site. There is a .php script on the server for scripts, which has a format like this:
# "nr of nicks"
<br>nick<br>nick<br>nick<br>...
I'm reading this file with a simple socket read, i let it read the line to a %var and then write the %var to a .txt file.
But when I check the text file, I only see the http info, the # nr, and then it stops. When I check the var, it has the # line in it.
Any idea on solving this? Here's the script: (I'm using a dialog to get the search terms in variables, but I've checked that, it works. The number of found nicks is also > 0. It opens the socket once all the vars have been set.)
(Just a simple, regular socket script as you can see.)
# "nr of nicks"
<br>nick<br>nick<br>nick<br>...
I'm reading this file with a simple socket read, i let it read the line to a %var and then write the %var to a .txt file.
But when I check the text file, I only see the http info, the # nr, and then it stops. When I check the var, it has the # line in it.
Any idea on solving this? Here's the script: (I'm using a dialog to get the search terms in variables, but I've checked that, it works. The number of found nicks is also > 0. It opens the socket once all the vars have been set.)
Code:
on *:sockopen:Noxazoek: { sockwrite -n $sockname GET /_dump/profielzoek1.php?&functie=zoekprofiel&zoekleeftijdmin= $+ %minage $+ &zoekleeftijdmax= $+ %maxage $+ &zoeklocatie= $+ %woonplaats $+ &zoekstatus= $+ %status $+ &zoekgeslacht= $+ %geslacht HTTP/1.1 sockwrite -n $sockname Host: www.noxa.net $+ $crlf $+ $crlf } on *:sockread:Noxazoek: { sockread %zoek write Noxa\profielzoek.txt %zoek }
(Just a simple, regular socket script as you can see.)