Uses for cURL
httpkit.com
Uses for cURL
1–10 of 75 posts
Re: Uses for cURL
#2Your echo service is pretty nifty too.
Re: Uses for cURL
#3Re: Uses for cURL
#4Re: Uses for cURL
#5That is actually wrong. The -I flag set the request method to HEAD. So in some cases it will return different headers than a normal get request (and some servers don't implement HEAD responses at all).
Re: Uses for cURL
#6BTW, here are some more cURL tips I noted down a while back, which I found to be useful for daily work. - http://laktek.com/2012/03/12/curl-tips-for-daily-use/
Re: Uses for cURL
#7> If you only care about headers use the -I flag and the response body will be hidden That is actually wrong. The -I flag set the request method to HEAD. So in some cases it will return different headers than a normal get request (and some servers don't implement HEAD responses at all).
> The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response.
and that
> The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request.
Re: Uses for cURL
#8> If you only care about headers use the -I flag and the response body will be hidden That is actually wrong. The -I flag set the request method to HEAD. So in some cases it will return different headers than a normal get request (and some servers don't implement HEAD responses at all).
Re: Uses for cURL
#9Re: Uses for cURL
#10I would strongly suggest HTTPie for the majority of these tasks: https://github.com/jkbr/httpie