I am trying to make a HTTPS-get request work in order to load a webpage wich has the url starting with "https:". I am using Indy10 (5248) with delphi 7. I don't seem to be able to get the authorization right, even using the same name/password or domain\name/password that I use in a browser. All I get is the same server response as if in the browser I would cancel the authentication request.
Now there are several ways to supply name/pwd:
- they can be entered as property values in idHTTP.request
- idem, in idHTTP.ProxyParams
- idHTTP has a number of on...Authorization-events
- a Post-example uses named parameters, but that seems to be specific for the google site it is trying to access (otherwise, how would I find out what the parameter names are..?)
In addition there are options. Even though there's a finite number of combinations, I haven't been able yet to find one working for me. What is the correct way of doing this?
s := IdHTTP1.Get('https://qwerty.wur.nl');
Memo1.Lines.Add(Format('Response Code: %d', [IdHTTP1.ResponseCode]));
Memo1.Lines.Add(Format('Response Text: %s', [IdHTTP1.ResponseText]));
Memo1.Lines.Add(s);