Use the location header flag:
curl -L <URL>
More Related Contents:
- curl: (60) SSL certificate problem: unable to get local issuer certificate
- How to send a header using a HTTP request through a cURL call?
- How can I see the request headers made by curl when sending a request to the server?
- How can you debug a CORS request with cURL?
- wget/curl large file from google drive
- How can I post data using cURL in asp classic?
- Using cURL with a username and password?
- How do I deal with certificates using cURL while trying to access an HTTPS url?
- How do I measure request and response times at once using cURL?
- How to download a Google Drive url via curl or wget
- How do you properly install libcurl for use in visual studio 2017?
- How can I download a single raw file from a private github repo using the command line?
- Batch script get html site and parse content (without wget, curl or other external app)
- How to display request headers with command line curl
- Simulate a specific CURL in PostMan
- What is the curl error 52 “empty reply from server”?
- CURLOPT_FOLLOWLOCATION cannot be activated [duplicate]
- cURL equivalent in Node.js?
- Why is curl truncating this query string?
- Set cURL to use local virtual hosts
- Sending Push via Postman using Firebase Messaging
- How to set the authorization header using cURL
- curl -GET and -X GET
- How to debug SSL handshake using cURL?
- Passing a URL with brackets to curl
- Why is Google Calendar API (oauth2) responding with ‘Insufficient Permission’?
- Using wildcards in wget or curl query
- How do I install cURL on cygwin?
- passing parameter to jenkins job through curl POST not working?
- Install curl with openssl