11/6/2023 0 Comments Download file from terminal macThe first line of the output tells you that it was moved, and the Location line tells you where: curl -I The output shows that the URL was redirected.If you happened to try to fetch the robots.txt file and only specified you would not see any output, because DigitalOcean redirects requests from to You can verify this by using the -I flag, which displays the request headers rather than the contents of the file: Thus far all of the examples have included fully qualified URLs that include the protocol. By default, curl doesn’t follow redirects, so when files move, you might not get what you expect.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |