Click here to Skip to main content
15,900,714 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generala problem of access violation Pin
Gérald Mercet27-Aug-02 23:21
Gérald Mercet27-Aug-02 23:21 
GeneralRe: a problem of access violation Pin
Andreas Saurwein27-Aug-02 23:26
Andreas Saurwein27-Aug-02 23:26 
GeneralReturn Key and Dialog based application Pin
Ravi.G.J27-Aug-02 23:03
Ravi.G.J27-Aug-02 23:03 
GeneralRe: Return Key and Dialog based application Pin
Tomasz Sowinski27-Aug-02 23:06
Tomasz Sowinski27-Aug-02 23:06 
GeneralSocket via firewall Pin
Shamoon27-Aug-02 22:22
Shamoon27-Aug-02 22:22 
GeneralFile transfer (GET) via HTTPS Pin
Jonas Larsson27-Aug-02 21:05
Jonas Larsson27-Aug-02 21:05 
GeneralRe: File transfer (GET) via HTTPS Pin
Andreas Saurwein27-Aug-02 23:36
Andreas Saurwein27-Aug-02 23:36 
GeneralRe: File transfer (GET) via HTTPS Pin
Jonas Larsson28-Aug-02 0:35
Jonas Larsson28-Aug-02 0:35 
Thanks, but I already got that part down. I guess I wasnt clear enough about the problem. Smile | :)

My problem is this:
Everything works dandy with normal http calls.
If its a SSL connection I add INTERNET_DEFAULT_HTTPS_PORT to my InternetConnect call and add the flags INTERNET_FLAG_SECURE|INTERNET_FLAG_IGNORE_CERT_DATE_INVALID|INTERNET_FLAG_IGNORE_CERT_CN_INVALID to my HttpOpenRequest call.

When I run it (using InternetOpen, InternetConnect, HttpOpenRequest, HttpSendRequest, HttpQueryInfo and InternetReadFile) everything returns correct values, but the page/file being sent with https is not the file i requested, but some kind of error page.

<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR>
<P>
While trying to retrieve the URL:
<A HREF="www.mycurrentclient.com:0">www.mycurrentclient.com:0</A>
<P>
The following error was encountered:
<UL>
<LI>

Invalid URL

</UL>

<P>
Some aspect of the requested URL is incorrect.  Possible problems:
<UL>
<LI>Missing or incorrect access protocol (should be `http://'' or similar)
<LI>Missing hostname
<LI>Illegal double-escape in the URL-Path
<LI>Illegal character in hostname; underscores are not allowed
</UL>
<P>Your cache administrator is <A HREF="mailto:root">root</A>. 

<br clear="all">


but when calling the exact same URL with a normal HTTP call, I receive the file I was looking for.

So, I guess my question is this: Should I do something other than what MS states in their doc's to be able to do GET's with HTTPS, or could this be a problem with the site im connecting to/the computer im connecting from?

“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
GeneralRe: File transfer (GET) via HTTPS Pin
Andreas Saurwein28-Aug-02 1:11
Andreas Saurwein28-Aug-02 1:11 
GeneralRe: File transfer (GET) via HTTPS Pin
Jonas Larsson28-Aug-02 1:24
Jonas Larsson28-Aug-02 1:24 
Generaltransp. blit over background image Pin
TimWallace27-Aug-02 19:25
TimWallace27-Aug-02 19:25 
GeneralRe: transp. blit over background image Pin
Ernest Laurentin27-Aug-02 19:54
Ernest Laurentin27-Aug-02 19:54 
GeneralRe: transp. blit over background image Pin
TimWallace27-Aug-02 20:10
TimWallace27-Aug-02 20:10 
GeneralOS incompatibility problem Pin
G.S.Gupta27-Aug-02 19:17
G.S.Gupta27-Aug-02 19:17 
GeneralRe: OS incompatibility problem Pin
Philip Patrick27-Aug-02 21:19
professionalPhilip Patrick27-Aug-02 21:19 
GeneralRe: OS incompatibility problem Pin
G.S.Gupta29-Aug-02 1:01
G.S.Gupta29-Aug-02 1:01 
GeneralRe: OS incompatibility problem Pin
Philip Patrick29-Aug-02 1:39
professionalPhilip Patrick29-Aug-02 1:39 
GeneralRe: OS incompatibility problem Pin
G.S.Gupta1-Sep-02 19:27
G.S.Gupta1-Sep-02 19:27 
GeneralRe: OS incompatibility problem Pin
Philip Patrick1-Sep-02 20:47
professionalPhilip Patrick1-Sep-02 20:47 
GeneralHELP:Display driver communicate with usermode app. Pin
jerry_hp27-Aug-02 18:46
jerry_hp27-Aug-02 18:46 
GeneralRe: HELP:Display driver communicate with usermode app. Pin
Andreas Saurwein27-Aug-02 23:42
Andreas Saurwein27-Aug-02 23:42 
GeneralRe: HELP:Display driver communicate with usermode app. Pin
jerry_hp28-Aug-02 15:01
jerry_hp28-Aug-02 15:01 
GeneralStrange memory allocation Pin
boon kian27-Aug-02 18:32
boon kian27-Aug-02 18:32 
GeneralRe: Strange memory allocation Pin
Chris Losinger27-Aug-02 18:34
professionalChris Losinger27-Aug-02 18:34 
GeneralRe: Strange memory allocation Pin
boon kian28-Aug-02 7:09
boon kian28-Aug-02 7:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.