Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HTTP authentication through wininet sdk calls

Posted on 2000-05-05
1
Medium Priority
?
353 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
1 Comment
 
LVL 1

Accepted Solution

by:
freddieblues earned 40 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

916 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