Skip to main content
edited tags
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265

ImI'm sending POST request to some link with valid username and password.

iI 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 iI 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>

Im 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>

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>
Source Link

Parsing HTML with cURL POST

Im 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>