Solved

HTTP authentication through wininet sdk calls

Posted on 2000-05-05
1
343 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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now