[wp-hackers] 1.5.1 Release

Pete Prodoehl pete.prodoehl at cygnusinteractive.com
Wed Apr 20 13:58:55 GMT 2005


Mike Little wrote:
> On 4/20/05, Matt Mullenweg <m at mullenweg.com> wrote:
>>Mike Little wrote:
>>
>>>*cough* Like wget? *cough*
>>>Ahem.. As you were...
>>Any others? Perhaps we could provide a redirect for buggy user agents.
>>
>>--
> 
> Wget is the only one I use, I never learned curl. 


A quick curl lesson:

   curl -I [url] gives the header info...

pete at local$ curl -I http://wordpress.org/latest.tar.gz
HTTP/1.1 200 OK
Date: Wed, 20 Apr 2005 13:53:00 GMT
Server: Apache
X-Powered-By: PHP/4.3.10, The blood, sweat and tears of the fine, fine 
TextDrive staff
Pragma: no-cache
Cache-control: private
Content-Description: File Transfer
Content-Encoding: x-gzip
Content-Disposition: attachment; filename=wordpress-1.5-strayhorn.tar.gz
X-Powered-By: The blood, sweat and tears of the fine, fine TextDrive staff
Served-By: TextDrive's Textpache
Content-Type: application/octet-stream
Served-By: TextDrive's Textpache

---------------------------------

   curl -O http://wordpress.org/latest.tar.gz

downloads the file, saving it with what appears to be it's name on the 
server. For me it saved it as 'latest.tar.gz' and not 
'wordpress-1.5-strayhorn.tar.gz'

---------------------------------

   curl -o strayhorn.tar.gz http://wordpress.org/latest.tar.gz

downloads the file, saving it with the name you specify.


That's about 99% of my curl usage.

Oh, I'm using curl 7.10.8 (powerpc-apple-darwin7.2.0) libcurl/7.10.8


Pete






More information about the wp-hackers mailing list