After being restored primarily with curls or wget, I need to get the final url.
For example, there may be redirects to .
Content is easy to get (e.g., curl - Max-raiders 10 http: // google com-L
), but I'm only interested in the final URL (in the former case) I take it.
Is there any way to do this only by using the Linux build tool? (Command line only)
curl
's -w < / Code> option and sub variable
url_effective
is what you are looking for.
Something like
curl -lso-o / DII / anal -yy% {url_effective} http: // google Com
More info
-L follow redirect -s cool state. Do not output anything - file FILE; & Lt; File & gt;) Which will not download any "body" command, but it still uses the head method, which is not included in the question and there is no risk in changing what the server does. Sometimes the servers do not respond well to the HEAD, whenever they respond properly to GET.
Comments
Post a Comment