When you are sending cookies to the server, they appear in this form:
- Cookie: name=data; name=data
If you want to read your login information directly from the cookie file and send it along the HTTP request, you can put this code in your sockopen event, above the ending CRLF:
.fopen c c:\windows\cookies\user@[color:blue]<cookie name>[/color].txt
if $ferr {
echo * Error: can't locate cookie file $fopen(c).fname
}
else {
while !$feof {
var %c = %c $+($fread(c),=,$fread(c),;)
[color:green] ; move the pointer after the next '*'[/color]
.fseek -r c \*
.fseek -n c
}
sockwrite -n $sockname Cookie: %c
}
.fclose c