cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: NYtimes.com - trying to save to file, but nothing returns

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 26 Nov 2007 16:42:21 -0800

On Mon, Nov 26, 2007 at 07:32:58PM -0500, Mike wrote:
> Trying to grab articles from nytimes.com from a vbscript, but I'm not
> getting any data back.

But you are getting data back; here it is:

> <= Recv header, 32 bytes (0x20)
> 0000: HTTP/1.1 301 Moved Permanently
> <= Recv header, 32 bytes (0x20)
> 0000: Server: Sun-ONE-Web-Server/6.1
> <= Recv header, 37 bytes (0x25)
> 0000: Date: Tue, 27 Nov 2007 00:28:58 GMT
> <= Recv header, 19 bytes (0x13)
> 0000: Content-length: 0
> <= Recv header, 25 bytes (0x19)
> 0000: Content-type: text/html
> <= Recv header, 300 bytes (0x12c)
> 0000: Location: http://www.nytimes.com/glogin?URI=http://www.nytimes.c
> 0040: om/2007/11/25/sports/basketball/25dribble.html&OQ=_rQ3D1Q26exQ3D
> 0080: 1353819600Q26enQ3D553ceb841f8eef32Q26eiQ3D5088Q26partnerQ3Drssny
> 00c0: tQ26emcQ3Drss&OP=146640cbQ2F0Vgk0Q5EQ3EQ5CmJQ3EQ3ERl0l,,-0Q20Q20
> 0100: 0l10mQ7EQ3EJRm0kLm8gRkLhh0l1Q5EJbkkhg.YRKh

You're asking about FAQ 3.8:
http://curl.haxx.se/docs/faq.html#How_do_I_tell_curl_to_follow_HTT

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-11-27