cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl gets webpage but ends prematurely, firefox works ok

From: Jason Sachs <jsachs_at_dekaresearch.com>
Date: Fri, 20 Jan 2006 13:21:53 -0500

A stumper... there's something weird with one of the USDA webpages, Firefox
sees it fine but curl ends prematurely somewhere in the middle.

http://plants.usda.gov/java/ClassificationServlet?source=display&classid=Eri
cales

Here's the beginning and end of a --trace-ascii run:
It looks like the server sends a chunk of size 0 for some reason, curl
decides to give up.

== Info: About to connect() to plants.usda.gov port 80
== Info: Trying 199.141.121.12... == Info: connected
== Info: Connected to plants.usda.gov (199.141.121.12) port 80
=> Send header, 137 bytes (0x89)
0000: GET /java/ClassificationServlet?source=display&classid=Ericales
0040: HTTP/1.1
004a: User-Agent: Mozilla/4.0
0063: Host: plants.usda.gov
007a: Accept: */*
0087:
<= Recv header, 17 bytes (0x11)
0000: HTTP/1.1 200 OK
<= Recv header, 37 bytes (0x25)
0000: Date: Fri, 20 Jan 2006 18:09:03 GMT
<= Recv header, 44 bytes (0x2c)
0000: Server: Apache/2.0.55 (Unix) mod_jk/1.2.14
<= Recv header, 69 bytes (0x45)
0000: Set-Cookie: JSESSIONID=AFAACCFAB8615DA0FA68722A327245F2; Path=/j
0040: ava
<= Recv header, 28 bytes (0x1c)
0000: Transfer-Encoding: chunked
<= Recv header, 44 bytes (0x2c)
0000: Content-Type: text/html;charset=ISO-8859-1
<= Recv data, 3899 bytes (0xf3b)
0000: 1ff8
0006: <?xml version="1.0" encoding="iso-8859-1"?>
0033: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
0073: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
00ae:
00b0:
00b2:
00b4:
00b6:
00b8:
00ba:
00bc:
00be:
00c0: .
00c3:
00c5:
00c7: <html xmlns="http://www.w3.org/1999/xhtml">
00f4: <head>
00fc: <title>Classification | USDA PLANTS</title>
012a:
012c:
012e: ..<meta http-equiv="Content-Type" content="text/html; charset=is

   [ stuff deleted -- jms ]

052f: <td height="22" valign="
055d: 8
0560: middle"
056a: 0
056d:
== Info: Connection #0 to host plants.usda.gov left intact
== Info: Closing connection #0

----
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by e-mail administrator_at_dekaresearch.com and destroy the original message. Thank you.
Received on 2006-01-20