Click here to get back home

SSL with WinINet

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
SSL with WinINet AliR \(VC++ MVP\) 04-16-2008
  `--> Re: SSL with WinINet AliR \(VC++ MVP...04-16-2008
Posted by AliR \(VC++ MVP\) on April 16, 2008, 4:30 pm
Please log in for more thread options
Hi everyone,

I'm using WinINet to access data on a SSL page with an invalid certificate
from a SmartPhone 2003 device.
I'm expecting to get a ERROR_INTERNET_INVALID_CA error after calling
HttpSendRequest, but nothing, it returns TRUE, and nothing in GetLastError.

Does anyone have any suggestions on how to get HttpSendRequest to tell me
that the certificate is invalid.

Thanks
AliR.




Posted by dbgrick on April 16, 2008, 5:01 pm
Please log in for more thread options
What Flags are you passing in your HttpOpenRequest call? Ensure you are not
including INTERNET_FLAG_IGNORE_CERT_CN_INVALID.

Regards,
Rick D.

"AliR (VC++ MVP)" wrote:

> Hi everyone,
>
> I'm using WinINet to access data on a SSL page with an invalid certificate
> from a SmartPhone 2003 device.
> I'm expecting to get a ERROR_INTERNET_INVALID_CA error after calling
> HttpSendRequest, but nothing, it returns TRUE, and nothing in GetLastError.
>
> Does anyone have any suggestions on how to get HttpSendRequest to tell me
> that the certificate is invalid.
>
> Thanks
> AliR.
>
>
>
>

Posted by AliR \(VC++ MVP\) on April 16, 2008, 5:17 pm
Please log in for more thread options
Thanks Rick. I copied the code from codeguru and didn't pay attention to
the flags, I was passing it INTERNET_FLAG_IGNORE_CERT_CN_INVALID.

AliR.


> What Flags are you passing in your HttpOpenRequest call? Ensure you are
> not
> including INTERNET_FLAG_IGNORE_CERT_CN_INVALID.
>
> Regards,
> Rick D.
>
> "AliR (VC++ MVP)" wrote:
>
>> Hi everyone,
>>
>> I'm using WinINet to access data on a SSL page with an invalid
>> certificate
>> from a SmartPhone 2003 device.
>> I'm expecting to get a ERROR_INTERNET_INVALID_CA error after calling
>> HttpSendRequest, but nothing, it returns TRUE, and nothing in
>> GetLastError.
>>
>> Does anyone have any suggestions on how to get HttpSendRequest to tell me
>> that the certificate is invalid.
>>
>> Thanks
>> AliR.
>>
>>
>>
>>



Similar ThreadsPosted
WinInet problem August 1, 2005, 1:44 am
Asynch wininet - Threaded or not? February 1, 2006, 9:51 am
Re: Asynch wininet - Threaded or not? February 2, 2006, 2:45 pm
Can wininet functions trigger CM to auto-establish a GPRS connecti June 11, 2005, 10:03 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap