Re: Problems on HTTPS Post Method

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 02/12/04


Date: Thu, 12 Feb 2004 13:18:33 -0500


"Sachin Tondon" <sachint@vkjsystems.com> wrote in message
news:O0hfq4X8DHA.2676@TK2MSFTNGP10.phx.gbl...
> I'm Having problem in writing VC(MFC) code for Sending Data through
>
> HTTPS Post method and retrieve the result back and close the HTTPS
>
> session.so please if any one have any idea or any code relating to the
>
> above mentioned problem then please forward the code or idea to me.
> I will be grateful for this kind act of yours.

See KB Article KB165298 "HOWTO: Simulate a Form POST Request Using
WinInet", KB165800 "SAMPLE: PostMon.exe Demonstrates How to Use URL
Moniker to POST Data", KB167658 "HOWTO: Automate Internet Explorer to
POST Form Data".

There's almost no difference in doing it over HTTPS vs HTTP. With
WinInet, you need to use INTERNET_DEFAULT_HTTPS_PORT in InternetConnect
call, then INTERNET_FLAG_SECURE flag in HttpOpenRequest call. With other
two methods, you simply use https:// URL.

-- 
With best wishes,
    Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Relevant Pages

  • Re: Proxy settings
    ... Before using WinInet from within VB think twice. ... For the moment we're using the HTTPS control from nsoftware in our software ... the internet connection will use the proxy setting in the IE. ...
    (microsoft.public.vb.winapi.networks)
  • WinInet -- Disable SSL Checks for Invalid CA?
    ... certificate authority within WinInet? ... secure site (https) and HttpSendRequest() keeps returning an INVALID_CA ...
    (microsoft.public.platformsdk.security)