cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Mike <sultanoswat_at_yahoo.com>
Date: Mon, 26 Nov 2007 19:32:58 -0500

Trying to grab articles from nytimes.com from a vbscript, but I'm not
getting any data back.

The url is:
http://www.nytimes.com/2007/11/25/sports/basketball/25dribble.html?ex=135381
9600&en=553ceb841f8eef32&ei=5088&partner=rssnyt&emc=rss

The command I'm using:
curl\curl.exe
"http://www.nytimes.com/2007/11/25/sports/basketball/25dribble.html?ex=13538
19600&en=553ceb841f8eef32&ei=5088&partner=rssnyt&emc=rss" -o
C:\files\rss2Email\cache\nytimes1125200764446AM.htm --create-dirs --crlf
--trace-ascii nytimes.txt

But the local file "C:\files\rss2Email\cache\nytimes1125200764446AM.htm"
doesn't get created. Looking at nytimes.txt:

== Info: About to connect() to www.nytimes.com port 80 (#0)
== Info: Trying 199.239.136.200... == Info: connected
== Info: Connected to www.nytimes.com (199.239.136.200) port 80 (#0)
=> Send header, 250 bytes (0xfa)
0000: GET /2007/11/25/sports/basketball/25dribble.html?ex=1353819600&e
0040: n=553ceb841f8eef32&ei=5088&partner=rssnyt&emc=rss HTTP/1.1
007c: User-Agent: curl/7.17.1 (i586-pc-mingw32msvc) libcurl/7.17.1 Ope
00bc: nSSL/0.9.7e zlib/1.2.3
00d4: Host: www.nytimes.com
00eb: Accept: */*
00f8:
<= 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
<= Recv header, 2 bytes (0x2)
0000:
== Info: Connection #0 to host www.nytimes.com left intact
== Info: Closing connection #0
Received on 2007-11-27