If you are using raw socket connections (fsockopen) and writing your own requests, cookies can be easily passed by writing them into your request headers. Or, if using CURL, it's a matter of setting the cookies to the CURL object before connection.
For file submissin, you'll need to pass the right MIME header and put the file into the request body using an encoding method. Search PHP.net for "base 64 encode".
I was using raw sockets but CURL sounds good
So file uploads are just base64? I don't have control over the end admin area just the submission script.
Edit: Just took a look at CURL - http://us3.php.net/manual/en/ref.curl.php and it supports cookies and file uploads!
*/sets to work playing with new toys
So file uploads are just base64? I don't have control over the end admin area just the submission script.
Edit: Just took a look at CURL - http://us3.php.net/manual/en/ref.curl.php and it supports cookies and file uploads!
*/sets to work playing with new toys
CURL is teh sw33tn3ss
Ok, I now use PHP to submit variables to a form protected by a password eg in an admin area but certain forms need to be submitted by users but without full admin acces.
So I have PHP provide the credentials to the server and the server accepts them and I can pass the form variables to the script via POST or GET. Now the question is, how would I pass a file? eg www-urlencoded pictures to include on the form?
/blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" />
BTW, is it possible to pass cookies to site also
/lmaosmiley.gif" style="vertical-align:middle" emoid=":biglaugh:" border="0" alt="lmaosmiley.gif" />?
My last resort is to sniff the packets and then figure out the binary data and convert my pictures to binary but..........
/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
Well its time to head out
Gotta find my place to rest
Before the sun goes down
In the darkness of the west - Day Of Fire