I'm sending POST
request to some link with valid username and password.
I use this command: curl -X POST -F '[email protected]' -F 'password=123' http://my.site.com/login
but it got Moved Temporarily. Redirecting to /
How can I redirect with cURL ?
HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Sun, 09 Oct 2016 07:43:26 GMT
Content-Type: text/html
Content-Length: 58
Connection: close
Vary: Accept
Location: /
Set-Cookie: connect.sid=s%3A%2FU%2FG5YeSNkjkaA%2Fet4evdmgj.QIGEGtrJQxNcNx1bdF6QzshqsEXn3hys1V2mkyuw3nY; Path=/; Expires=Sun, 09 Oct 2016 08:13:26 GMT; HttpOnly
<p>Moved Temporarily. Redirecting to <a href="/">/</a></p>