Live data from Hacker News

Uses for cURL

httpkit.com

21–30 of 75 posts

Re: Uses for cURL

#26
post #7
post #5

> 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).

Very true, but let's not forget that [0] > 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. [0]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

Yes, it should work the same. But it's not the same.

Re: Uses for cURL

#27

This title is a bit misleading. I was assuming that I'd be reading about how to use something that wasn't curl?

It got changed, sorry. Original title was "9 uses for cURL everyone should know". Perhaps a bit assumptive.

Ah, thanks for the info, and nice examples! The main title on the page is now "9 uses for cURL worth knowing" for any mods watching.. :)

Re: Uses for cURL

#29

I'm sure there must be other sites documenting this too, but that's a very well written and prioritized bit of documentation - nicely done. Your echo service is pretty nifty too.

It is. One thing I just noticed though, the echo service indicates that docs are available at http://httpkit.com/echo but that URI is a 404.

Re: Uses for cURL

#30
post #22

I hope tomorrow I'll see an even more useful article on sending email from the command line! Wow. /sarcasm

I'd be interested to know exactly what you mean (I usually don't really get sarcasm). It seems that you think this advice is useless, or that people never use the command line, or something, but I don't really know what.

Could you be more specific? I find it useful to understand different points of view.

Thanks

Post reply on HN