Your message dated Mon, 23 Apr 2012 16:47:37 +0200
with message-id <20120423144737.GA24474@PC-Ale>
and subject line Re: Bug#670155: Test: curl -sI -L http://fb.me/CoMWwU2b ; the 
-L option does not get the right url .
has caused the Debian Bug report #670155,
regarding Test: curl -sI -L http://fb.me/CoMWwU2b ; the -L option does not get 
the right url .
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
670155: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670155
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: curl
Version: 7.21.0-2.1+squeeze2
Severity: normal


>From tiny url to original url, the -L option does not find the right url
if it goes to Facebook (unsupported browser error mentionned).


-- System Information:
Debian Release: 6.0.4
  APT prefers stable
  APT policy: (900, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=UTF-8) (ignored: LC_ALL set to 
fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages curl depends on:
ii  libc6                2.11.3-2            Embedded GNU C Library: Shared lib
ii  libcurl3             7.21.0-2.1+squeeze2 Multi-protocol file transfer libra
ii  zlib1g               1:1.2.3.4.dfsg-3    compression library - runtime

curl recommends no packages.

curl suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
On Mon, Apr 23, 2012 at 04:09:16PM +0200, Alexandre Delanoƫ wrote:
> Package: curl
> Version: 7.21.0-2.1+squeeze2
> Severity: normal
> 
> 
> >From tiny url to original url, the -L option does not find the right url
> if it goes to Facebook (unsupported browser error mentionned).

No, curl *does* find the corrent URL:

> % curl -v -L http://fb.me/CoMWwU2b
> * About to connect() to fb.me port 80 (#0)
> *   Trying 66.220.149.11...
> * connected
> * Connected to fb.me (66.220.149.11) port 80 (#0)
> > GET /CoMWwU2b HTTP/1.1
> > User-Agent: curl/7.25.0 (x86_64-pc-linux-gnu) libcurl/7.25.0 OpenSSL/1.0.1a 
> > zlib/1.2.6 libidn/1.24 libssh2/1.4.0 librtmp/2.3
> > Host: fb.me
> > Accept: */*
> > 
> * additional stuff not fine transfer.c:1037: 0 0
> * HTTP 1.1 or later with persistent connection, pipelining supported
> < HTTP/1.1 301 Moved Permanently
> < Location: 
> https://www.facebook.com/permalink.php?story_fbid=315101301895181&id=111822052223108
> < Content-Type: text/html; charset=utf-8
> < X-FB-Debug: LESXhOOsNGsvkCR/RSuDwbY3otRFTqDLkmw1d3okX1o=
> < X-Cnection: close
> < Date: Mon, 23 Apr 2012 14:30:39 GMT
> < Content-Length: 0
> < 
> * Connection #0 to host fb.me left intact
> * Issue another request to this URL: 
> 'https://www.facebook.com/permalink.php?story_fbid=315101301895181&id=111822052223108'
> [...]
                                        
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

After this curl goes in a redirection loop. wget goes in the same loop too, so
I'd say that this is not a curl bug.

It seems that facebook.com does not recognize the user agent of curl and
refuses to respond properly. Setting the curl user agent to the one of chromium
works fine:

> % curl -L http://fb.me/CoMWwU2b -A 'Mozilla/5.0 (X11; Linux x86_64) 
> AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.151 Safari/535.19'
> [...]

Anyway, I'm closing this report since it's not a curl bug.

Cheers

-- 
perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to