cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: imagebin form

From: <pxam67_at_virgilio.it>
Date: Sat, 5 Dec 2009 00:32:49 +0100 (CET)

>----Messaggio originale----
>Da: kdudka_at_redhat.com
>On Saturday 05 of
December 2009 00:02:01 pxam67_at_virgilio.it wrote:
>> "the response
SHOULD contain a
>> short hypertext note with a hyperlink to the new
URI"
>>
>> but i see no
>> hyperlink in the response...
>>
>> now?
>
>I've just tried it myself. The problem is the server does not take any
PNG
>image. Try a JPG image instead ;-)

very strange... using a
"normal" browser (like mozilla) the server takes the png.

anyway you
were right, it works with jpeg:

$ curl --verbose -F nickname=aaa -F
image=@temp.jpeg -F title= -F description= -F disclaimer_agree=Y -F
Submit=Submit -F mode=add http://imagebin.org/index.php 2> dump2

$ cat
dump2
* About to connect() to imagebin.org port 80 (#0)
* Trying
174.143.244.148... connected
* Connected to imagebin.org
(174.143.244.148) port 80 (#0)
> POST /index.php HTTP/1.1
> User-Agent:
curl/7.18.2 (i486-pc-linux-gnu) libcurl/7.19.4 OpenSSL/0.9.8k zlib/1.
2.3.3 libidn/1.15 libssh2/1.1
> Host: imagebin.org
> Accept: */*
>
Content-Length: 12276
> Expect: 100-continue
> Content-Type:
multipart/form-data; boundary=----------------------------1927a6011739
>
< HTTP/1.1 100 Continue
< HTTP/1.1 302 Found
< Date: Fri, 04 Dec
2009 23:29:50 GMT
< Server: Apache/2.2.8 (Ubuntu) DAV/2 PHP/5.2.4-
2ubuntu5.9 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_perl/2.
0.3 Perl/v5.8.8
< X-Powered-By: PHP/5.2.4-2ubuntu5.9
< Set-Cookie:
imagebin_nickname=deleted; expires=Thu, 04-Dec-2008 23:29:50 GMT
<
Location: 74126
< Vary: Accept-Encoding
< Content-Length: 0
< Content-
Type: text/html
<
* Connection #0 to host imagebin.org left intact
*
Closing connection #0

$

thanks!
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-05