curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: I need to get the redirect url without downloading the url

From: ToddAndMargo <ToddAndMargo_at_zoho.com>
Date: Sun, 5 Aug 2018 16:25:40 -0700

On 08/05/2018 03:43 PM, Daniel Stenberg wrote:
> On Sun, 5 Aug 2018, ToddAndMargo wrote:
>
>> There are times when I need the redirect url(s)
>>
>>    curl -Ls -w %{url_effective} -o /dev/null https://google.com
>
>> Is there a way to get curl to give me just the redirect(s)?
>
> Add -I (--head) ?
>

Hmmmm. That give me what I want and a lot of other
interesting stuff too.

Thank you!

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-08-06