curl-and-php
Re: File Upload & Post problem - libcurl + PHP
Date: Tue, 2 May 2006 15:04:37 -0700 (PDT)
Hi,
The output should show a trace of the file uploaded and the parameters posted.
something like below :
------------0xKhTmLbOuNdArY
Content-Disposition: form-data; name="name"
my name
------------0xKhTmLbOuNdArY
Content-Disposition: form-data; name="infile"; filename="image.jpg"
Content-Type: image/jpeg
after that i should get a HTTP/1.1 302 confirmation page found and HTTP/1.1 200 OK.
But i dont get a trace as mentioned above for multipart/form-data upload ,instead i get a HTTP/1.1 100 and then HTTP/1.1 200 and get redirected to error page.
Coul you let me know why this happens?
Thanks,
LP
Daniel Stenberg <daniel_at_haxx.se> wrote:
On Tue, 2 May 2006, lakshmipriya prabhu wrote:
> Problem : Upload & post to the website is not happening and i am getting
> directed to the error page with trace summary as below
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=----------------------------0b038ba78c65
Both these are request headers. Are you saying the site returns these?
> < HTTP/1.1 100 Continue
This is perfectly normal and expected since you sent a Expect: 100-continue.
> < HTTP/1.1 200 OK
And here's an OK response. Now why was this bad again?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php --------------------------------- Yahoo! Mail goes everywhere you do. Get it on your phone.
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2006-05-03