[b]"How to make curl follow redirect properly? Need help with curl follow redirect behavior."[/b] Alternatively, for

18 Replies, 865 Views

Hey! curl follow redirect might fail if the redirect URL has spaces or weird chars. Try wrapping the URL in quotes.

Example:
```bash
curl -L "http://example.com/weird path"
```

Also, `--max-redirs 10` should work—unless the site’s redirecting infinitely. Check with `-v`.

Messages In This Thread



Users browsing this thread: 1 Guest(s)