2016-03-29 07:27:23

by Ajay Garg

[permalink] [raw]
Subject: Socket-Option in POSIX-sockets, to allow traffic via proxy

Hi All.

Surprisingly, I could not find this on google :-\

We are trying to use vanilla POSIX-socket-APIs, but we are unable to
connect if the URL is on the other side of the proxy.
Is there a socket-option wherein this would be allowed?


I will be grateful for any pointers.


Thanks and Regards,
Ajay


2016-03-30 14:52:38

by Phil Turmel

[permalink] [raw]
Subject: Re: Socket-Option in POSIX-sockets, to allow traffic via proxy

On 03/29/2016 03:27 AM, Ajay Garg wrote:
> Hi All.
>
> Surprisingly, I could not find this on google :-\
>
> We are trying to use vanilla POSIX-socket-APIs, but we are unable to
> connect if the URL is on the other side of the proxy.
> Is there a socket-option wherein this would be allowed?
>
> I will be grateful for any pointers.

This isn't a socket level operation, except to connect to the proxy.
Google suggests using libproxy and/or libcurl.

HTH,

Phil