cURL / Mailing Lists / curl-users / Single Mail

curl-users

Problems using CURL commands with ASP Pages

From: Lucas Howell <ljanesh_at_yahoo.com>
Date: Sat, 20 Jan 2007 01:11:42 -0800 (PST)

Hi All,

I've been trying to download an ASP page using command
line cURL, and am having a bit of trouble. I've used
LiveHttpHeaders in FireFox to investigate what the
header looks like, and have tried to emulate that
exactly using cURL on the command line. However, the
ASP page that I'm attempting to load, repeatedly fails
with the following error:

"Microsoft VBScript Runtime error '800a0000d' -> Type
mismatch: 'CDbl'"

==============================

Here's the output from my test:

curl -v -L -c curlcookies.txt -b
"ASPSESSIONIDSQDADRBT=IHCMFJFAEPIDBMOPLAMDLINK;
ZipCode=80203; clsSearch%2EStateCode=WY;"
http://www.glorecords.blm.gov/PatentSearch/Detail.asp?Accession=189204
* About to connect() to www.glorecords.blm.gov port 80
(#0)
* Trying 12.109.33.107... connected
* Connected to www.glorecords.blm.gov (12.109.33.107)
port 80 (#0)
> GET /PatentSearch/Detail.asp?Accession=189204
HTTP/1.1
> User-Agent: curl/7.16.0 (i586-pc-mingw32msvc)
libcurl/7.16.0 zlib/1.2.2
> Host: www.glorecords.blm.gov
> Accept: */*
> Cookie:
ASPSESSIONIDSQDADRBT=IHCMFJFAEPIDBMOPLAMDLINK;
ZipCode=80203; clsSearc
h%2EStateCode=WY;
>
< HTTP/1.1 500 Internal Server Error
< Server: Microsoft-IIS/5.0
< Date: Sat, 20 Jan 2007 09:12:38 GMT
< Content-Length: 287
< Content-Type: text/html
< Cache-control: private
 <font face="Arial" size=2>
<p>Microsoft VBScript runtime </font> <font
face="Arial" size=2>error '800a000d'
</font>
<p>
<font face="Arial" size=2>Type mismatch: 'CDbl'</font>
<p>
<font face="Arial"
size=2>/Frameworks\Classes\Browser.cls</font><font
face="Aria
l" size=2>, line 134</font>
* Connection #0 to host www.glorecords.blm.gov left
intact
* Closing connection #0
=======================================================================

Here is the original header from refreshing in the
browser with Live Http Headers:

http://www.glorecords.blm.gov/PatentSearch/Detail.asp?Accession=189204

GET /PatentSearch/Detail.asp?Accession=189204 HTTP/1.1
Host: www.glorecords.blm.gov
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: ASPSESSIONIDSQDADRBT=IHCMFJFAEPIDBMOPLAMDLINK;
ZipCode=80203; clsSearch%2EStateCode=WY

HTTP/1.x 200 OK
Server: Microsoft-IIS/5.0
Date: Sat, 20 Jan 2007 09:19:15 GMT
Content-Length: 22756
Content-Type: text/html
Expires: Sat, 20 Jan 2007 09:19:15 GMT
Cache-Control: Private
----------------------------------------------------------

What am I missing here? Any info you could provide
would be greatly appreciated.

Thanks,

Lucas
Received on 2007-01-20