W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2005

HTLoadToChunk problem

From: Ivan Tarapov <itarapov@telcos.net.ua>
Date: Thu, 1 Dec 2005 16:56:13 +0200
To: "libwww w3c" <www-lib@w3.org>
Message-Id: <20051201145613.439FECAD3A@mail.telcos.net.ua>
Hi, 

 

I am using such call:

 

chunk = HTLoadToChunk(sCallRequest.c_str(), request);

 

 

If I set sCallRequest to be http://www.google.com <http://www.google.com/> ,
the load fails with the message in trace:

TRACE: Error....... Add  74     Severity: 1     Parameter: `http'
HTProtocol_find'

TRACE: Net Object.. NO PROTOCOL Object found for URI scheme `http'

 

If I set sCallRequest to be www.google.com <http://www.google.com/> , the
load also fails with trace message

TRACE: HTAccess.... Accessing document www.google.com

TRACE: Error....... Add  74     Severity: 1     Parameter: `'   Where:
`HTProtocol_find'

TRACE: Net Object.. NO PROTOCOL Object found for URI scheme `'

 

What's the problem? What should I pass to HTLoadToChunk in order to access
www.google.com <http://www.google.com/> ?

 

There's another question I've got: apparently, there's an error happening
while accessing the URI. How can I determine what type of error is that and
print my own custom message, just like the trace does?

 

Best Regards,

Ivan
Received on Thursday, 1 December 2005 14:56:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:45 GMT