Forum Moderators: phranque

Message Too Old, No Replies

layout of multipart/form data POST request

Is there a problem with this code?

         

proper_bo

11:45 am on Apr 21, 2006 (gmt 0)

10+ Year Member



I am posting an image file and a reply=yes string to a page. It doesn't seem to be working.

Could you take a look at see what I am doing wrong please?

I am ready to test any replies straight away.

Thanks,

Harry

==== CODE BEGINS ====

POST /index.php HTTP/1.0
Host: www.example.com
Referer: [example2.com...]
Content-type: multipart/form-data, boundary=AaB03x
Content-Length: 4979
--AaB03x
content-disposition: form-data; name="reply"
yes
--AaB03x
content-disposition: form-data; name="fileupload"; filename="dj.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
/9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg
....binary code continues

--AaB03x

==== CODE ENDS ====

[edited by: txbakers at 11:49 am (utc) on April 21, 2006]

(sorry)