Package: httpie
Version: 0.1.6+20120309git-2.1
Severity: important

I wrote this E-Mail to author of httpie:

---- Clip here ----

I'd like to use your software in this project:

http://iki.fi/juhtolv/hacks/sh/tausta/

What am I doing wrong?:

% http --allow-redirects --ugly --body GET 
http://iki.fi/juhtolv/pix/ryppy_black.jpg > ryppy_black.jpg

% file ryppy_black.jpg ryppy_black.jpg: data

% display ryppy_black.jpg
display.im6: Not a JPEG file: starts with 0xc3 0xbf `ryppy_black.jpg'
@ error/jpeg.c/JPEGErrorHandler/316.

% rm -f ryppy_black.jpg

% wget http://iki.fi/juhtolv/pix/ryppy_black.jpg
--2012-10-07 14:44:21--  http://iki.fi/juhtolv/pix/ryppy_black.jpg
Selvitetään osoitetta iki.fi (iki.fi)... 195.140.195.194,
212.16.98.51, 212.16.100.1, ...
Yhdistetään palvelimeen iki.fi (iki.fi)|195.140.195.194|:80...
yhdistetty.
HTTP-pyyntö lähetetty, odotetaan vastausta... 302 Found
Sijainti: http://koti.kapsi.fi/~juhtolv/pix/ryppy_black.jpg
[seurataan]
--2012-10-07 14:44:21--
http://koti.kapsi.fi/~juhtolv/pix/ryppy_black.jpg
Selvitetään osoitetta koti.kapsi.fi (koti.kapsi.fi)... 217.30.184.173
Yhdistetään palvelimeen koti.kapsi.fi
(koti.kapsi.fi)|217.30.184.173|:80... yhdistetty.
HTTP-pyyntö lähetetty, odotetaan vastausta... 200 OK
Pituus: 126031 (123K) [image/jpeg]
Tallennetaan kohteeseen ”ryppy_black.jpg”

100%[======================================>] 126 031     --.-K/s   in
0,09s

2012-10-07 14:44:21 (1,30 MB/s) - ”ryppy_black.jpg” tallennettu
[126031/126031]

% file ryppy_black.jpg
ryppy_black.jpg: JPEG image data, JFIF standard 1.01

---- Clip here ----

He answered to me:

---- Clip here ----
Hi Juhapekka,

you are using an old version of HTTPie where downloading binary files
doesn't work properly.

If you update to the current version (via `pip install -U httpie'),
then you'll be able to download the pic using the following command:

        http --follow http://iki.fi/juhtolv/pix/ryppy_black.jpg > 
ryppy_black.jpg

Cheers,
Jakub

---- Clip here ----



-- System Information:
Debian Release: wheezy/sid
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing-proposed-updates'), (500, 
'stable-updates'), (500, 'proposed-updates'), (102, 'testing'), (101, 
'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages httpie depends on:
ii  python                       2.7.3-2
ii  python-argparse              1.2.1-2
ii  python-pkg-resources         0.6.24-1
ii  python-pygments              1.5+dfsg-1
ii  python-requests              0.12.1-1
ii  python2.7 [python-argparse]  2.7.3-5

httpie recommends no packages.

httpie suggests no packages.

-- no debconf information

-- 
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"Quidquid Latine dictum sit altum videtur."


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to