shell - WGET get HEADER if 302 -
i need response if 302 redirect. page returns set-cookie headers , after redirects page.
how can header response if redirecting wget? (cant use curl)
i trying max-redirects = 0, it's stop redirect , response empty
--2016-11-13 14:55:43-- https://host/cgi-bin/auth resolving host ... 255.255.255.255 connecting host|255.255.255.255|:443... connected. http request sent, awaiting response... 302 ok location: https://host/messages/inbox?back=1&modal=1&opener=host.login&allow_external=1&back=1&from=mail.login&type=login [following] 0 redirections exceeded.
Comments
Post a Comment