cURL / Mailing Lists / curl-library / Single Mail

curl-library

libcurl https GET not returning entire data

From: Naved Khan <navedk_at_cybage.com>
Date: Wed, 9 Apr 2003 17:45:00 +0530

Hi,

Sorry for the wierd subject...I couldn't think of anything.
I'm using my makeshift https IIS server which has an ISAPI extension and
returns a hard coded string. When i use curl utility with the following
command:

curl -v
https://203.124.158.86/navedk/ExtThreadPool.dll?ProcessURL?SOMEPARAMETERS -k
(using this option as i dont have a valid CA client certificate), it shows
the proper return tag at the end.

The following is the output:
****************************************************************************
**
* About to connect() to 203.124.158.86:443
* Connected to 203.124.158.86 (203.124.158.86) port 443
* SSL connection using RC4-MD5
* Server certificate:
* subject: /C=US/ST=WA/L=Nowhere/O=No Company/CN=TestServer
* start date: 2000-02-16 21:31:53 GMT
* expire date: 2019-02-16 21:41:53 GMT
* common name: TestServer (does not match '203.124.158.86')
* issuer: /emailAddress=jclark_at_microsoft.com/C=US/CN=Programming
Server-S
ide Applications Test CA
> GET /navedk/ExtThreadPool.dll?ProcessURL?GOOGLE HTTP/1.1
User-Agent: curl/7.10.4 (win32) libcurl/7.10.4 OpenSSL/0.9.7a
Host: 203.124.158.86
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Wed, 09 Apr 2003 12:09:09 GMT
Connection: close
Content-Type: text/html
Content-Length: 86

<html>Returned Tag: Shopping:Vehicles:Autos + been2:toyota:20 +
male:25-35:CA</h
tml>* Closing connection #0
****************************************************************************
**

But when i try to use libcurl in my sample C++ application using the
following code
...
        curl_easy_setopt(curl, CURLOPT_URL,
"https://203.124.158.86/navedk/ExtThreadPool.dll?ProcessURL?GOOGLE");
        res = curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,0);
        res = curl_easy_perform(curl);
...

it shows the following output:
****************************************************************************
***
About to connect() to 203.124.158.86:443
* Connected to 203.124.158.86 (203.124.158.86) port 443
* SSL connection using RC4-MD5
* Server certificate:
* subject: /C=US/ST=WA/L=Nowhere/O=No Company/CN=TestServer
* start date: 2000-02-16 21:31:53 GMT
* expire date: 2019-02-16 21:41:53 GMT
* Closing connection #0
****************************************************************************
**

Why is the output different? What am I missing?

TIA,
Naved

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-04-09