This script, if it could be completed would be immensely useful.

Basically this is a shot in the dark. I haven't had a lot of experience with server-side FORM/POST processing and so I'm not even sure what order/format the posts would take.

The main challenges:
* logging in and
* making it think you have a cookie

on *:sockopen:FB:{
echo 12 @FB -- Socket now open --
{ var %%%webpage = /index.php | var %%%http = HTTP/1.1 }

var %%%out.message = email=test@email pass=testpass

var %s = sockwrite -n $sockname
%s POST /login.php HTTP/1.1
%s Referer: http://myschool.facebook.com/index.php
%s Host: myschool.facebook.com
%s Content-Type: application/x-www-form-urlencoded
%s Content-Length: $len(%%%out.message)
%s Connection: Keep-Alive
%s Cache-Control: no-cache
%s
%s %%%out.message

echo 4 @FB -- end for now --
}

It would be amazingly useful if it could be completed. The goal is to be able to read facebook search pages/etc from script.

There was a thread similar to this by h4z4rd a few days back, but the issues are a little more broad than in his post; also I'm wondering if it's possible to tell what the browsers are saying to the server. That would make it a lot eaier...