What’s the Best curl Option to Handle Redirects? or How Do You Use the --data curl Option for POST Re

18 Replies, 836 Views

If `-L` isn’t cutting it, try `--resolve` to force DNS for specific domains. Sometimes redirects fail because of DNS weirdness.

Also, `--proto =https` can help if the server’s picky about HTTPS.

For a full breakdown, curl’s man page (`man curl`) has a ton of redirect-related options.

Messages In This Thread



Users browsing this thread: 1 Guest(s)