Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753742AbcC3Owi (ORCPT ); Wed, 30 Mar 2016 10:52:38 -0400 Received: from atl.turmel.org ([74.117.157.138]:48680 "EHLO atl.turmel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752107AbcC3Owh (ORCPT ); Wed, 30 Mar 2016 10:52:37 -0400 X-Greylist: delayed 1082 seconds by postgrey-1.27 at vger.kernel.org; Wed, 30 Mar 2016 10:52:37 EDT Subject: Re: Socket-Option in POSIX-sockets, to allow traffic via proxy To: Ajay Garg , linux-kernel@vger.kernel.org References: From: Phil Turmel Message-ID: <56FBE3F9.3050500@turmel.org> Date: Wed, 30 Mar 2016 10:34:33 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 465 Lines: 17 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