Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

HTTP authentication through wininet sdk calls

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

715 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