Solved

HTTP authentication through wininet sdk calls

Posted on 2000-05-05
1
351 Views
Last Modified: 2013-12-03
I am writing a program to obtain authentication from a perticular website through http protocol, and the server cgi-script is expecting some name value pairs as input, so how to pass this info from my application? and how to invoke that server cgi program?
0
Comment
Question by:gcgovind
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
freddieblues earned 20 total points
ID: 2799157
The User and Password are send to web server by InternetConnect function like this:
hConnect:=InternetConnect(hHttpSession,
            'www.webserv.ext',
   1-->     INTERNET_DEFAULT_HTTPS_PORT,
   2-->     'USERID',
   3-->     'PASSWORD',
            INTERNET_SERVICE_HTTP,
            0,
            0);
 2 is your User Id, 3 is the password. Note:
 1 specify that the connection is made through the SSL, if the connection is normal you must use:
 INTERNET_DEFAULT_HTTP_PORT

0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question