cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: When running cat filename |xargs -i curl -sIL -w "%{http_code} %{url_effective}\n" -o /dev/null {} - curl get stuck on some websites

From: Alex Bligh <alex_at_alex.org.uk>
Date: Sun, 11 Jul 2010 16:07:37 +0100

--On 11 July 2010 16:39:10 +0300 "Liran ..." <reactor.leet_at_gmail.com> wrote:

> Also getting stuck with this parameter:
> curl -sIL -w "%{http_code} %{url_effective}\n" http://192.168.4.47
>
>
> but when I run this: curl http://192.168.4.47 it's working fine

So I would bet it's returning a 3XX response, and the -L on the
first line is causing it to load from a site that hangs. You
don't see that on the parameterless version.

-- 
Alex Bligh
-------------------------------------------------------------------
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 2010-07-11