Solved

HTTP authentication through wininet sdk calls

Posted on 2000-05-05
1
349 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Where can I find the FoxPro ODBC Download version 1.0 6 41
Visual Studio Debugging 3 142
dialer.exe 4 65
Best book to learn C++ 4 85
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 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