HTLoadToChunk problem

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 UTC