#1 2015-01-21 10:38:00

Sabbiolina
Member
Registered: 2014-05-20
Posts: 120

[HTTP PROXY] how to provide the credentials?

Hi AB,

Today I found myself in the situation of having to set up an http proxy to surf outside the local network.

I did not find documentation on how to provide credentials.

The program (win32) use this:
var
  aclient: TSQLHttpClient

begin
  aclient: TSQLHttpClientWinHTTP.Create = (addr, SERVER_PORT, Amodel);

I changed in:

   aclient: TSQLHttpClientWinHTTP.Create = (addr, SERVER_PORT, Amodel, false, 'proxy: 8080', 'localhost');

and works with an authenticated proxy-based ip origin, but if authentication is on user / password does not work.

but how do I add the user and password?

Offline

#2 2015-01-21 18:43:16

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: [HTTP PROXY] how to provide the credentials?

A simple Google search returned me https://technet.microsoft.com/en-us/library/bb430772

I think it is what you need.

Offline

#3 2015-01-21 19:41:47

Sabbiolina
Member
Registered: 2014-05-20
Posts: 120

Re: [HTTP PROXY] how to provide the credentials?

I only want to enable my application, not the entire computer.

There is no API to call?

Offline

#4 2015-01-21 20:29:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: [HTTP PROXY] how to provide the credentials?

I do not know those.

Offline

#5 2015-01-22 14:01:52

danielkuettner
Member
From: Germany
Registered: 2014-08-06
Posts: 357

Re: [HTTP PROXY] how to provide the credentials?

AFAIR you should use:

username:password@proxy:PORT

Offline

Board footer

Powered by FluxBB