|
-
April 11th, 2012, 05:08 AM
#1
MSXML2 IServerXMLHTTPRequestPtr and no internet connection
Hi,
I'm using MSXML2::IServerXMLHTTPRequestPtr to send a request. When I have no internet connection, I get an exception.
My code:
xmlHttp.CreateInstance(MSXML2::CLSID_ServerXMLHTTP);
xmlHttp->open("GET", url, variant_t(false));
xmlHttp->setRequestHeader("Accept-Language", "en-US");
xmlHttp->send();
When I use it and there's no internet connection, I get a 0xE0000001 exception, while in xmlHttp->send(), from this code:
inline void _bstr_t:: Data_t::_Free() throw()
{
if (m_wstr != NULL) {
::SysFreeString(m_wstr);
...
}
Any ideas?
Thanks,
yakobom
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|