HTLoadToChunk problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

HTLoadToChunk problem

Ivan Tarapov

Hi,

 

I am using such call:

 

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

 

 

If I set sCallRequest to be 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, 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?

 

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