If your refering to HTTP POST, the following is its syntax.
POST [color:red]/dir/page.ext HTTP/1.1
Referer:
http://www.website.net/dir/page.phpUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host:
www.website.netContent-Length:
length of your dataConnection: Keep-Alive
/sockwrite -n socknameyour data/sockwrite -n sockname[/color]
You should change to red to the following:
/dir/page.ext - should obviously be the page your trying to send the post data to, if your unsure of the page, goto the website with the 'form' your trying to fill in, and it will be located in the source code (IE, View - Source) here:
<FORM method="post" action="[color:red]HERE">[/color]
If just 'method=post' is there, then the page you should have in your POST / - will be the same page as the form is on.
http://www.website.net/dir/page.php - for the 'REFERER' again should be the page the form is on, you can usually get away without it, but it all depends on the website.
www.website.net is the websites domain name only, i.e.
www.mirc.comlength of your data - is the length of
your data further down this header, simply use $
len() to get it. (obviously before you send the header you will need to set your data to a variable then send the length of the variable here, and further down send your variable.
/sockwrite -n sockname - is where in your coding you should perform this command, in the first instance it will seperate your data from the HTTP header, in the second instance will tell the server the end of your data.
your data the data you wish to send to the server, or the variable containing your data..
Hope this helps.
Eamonn.