# Fetch via http and proxy which requires authentication

5 messages from 2008-08-28 to 2008-11-06. Participants: Paolo Ciarrocchi, Dilip M.
Thread: https://gitlist.dev/t/15256

## Paolo Ciarrocchi, 2008-08-28 06:00

Subject: Fetch via http and proxy which requires authentication
Message-ID: <4d8e3fd30808272300g58d92dd8pd877d72805bc29c0@mail.gmail.com>
URL: https://gitlist.dev/e/4d8e3fd30808272300g58d92dd8pd877d72805bc29c0%40mail.gmail.com

```
Hi all,
i'm looking for a way to use git behind a corporate proxy which
requires authentication.
i just need to be able to fetch/pull via http.
i'm using git on a win xp box.
Any hint?

thanks.

regards,
-- 
Paolo
http://paolo.ciarrocchi.googlepages.com/

```

## Paolo Ciarrocchi, 2008-08-28 10:13

Subject: Re: Fetch via http and proxy which requires authentication
Message-ID: <4d8e3fd30808280313i70f572cfh9c14fbc2adbf5cea@mail.gmail.com>
URL: https://gitlist.dev/e/4d8e3fd30808280313i70f572cfh9c14fbc2adbf5cea%40mail.gmail.com
In-Reply-To: <4d8e3fd30808272300g58d92dd8pd877d72805bc29c0@mail.gmail.com>

```
On Thu, Aug 28, 2008 at 8:00 AM, Paolo Ciarrocchi
<paolo.ciarrocchi@gmail.com> wrote:
> Hi all,
> i'm looking for a way to use git behind a corporate proxy which
> requires authentication.
> i just need to be able to fetch/pull via http.
> i'm using git on a win xp box.
> Any hint?

Yes, google for  http_proxy ;-)

export http_proxy=http://host:port
git clone http://username:password@giturl


Ciao,
-- 
Paolo
http://paolo.ciarrocchi.googlepages.com/

```

## Dilip M, 2008-11-03 14:02

Subject: Re: Fetch via http and proxy which requires authentication
Message-ID: <c94f8e120811030602p57007278p5a2c48ce7663282d@mail.gmail.com>
URL: https://gitlist.dev/e/c94f8e120811030602p57007278p5a2c48ce7663282d%40mail.gmail.com
In-Reply-To: <4d8e3fd30808280313i70f572cfh9c14fbc2adbf5cea@mail.gmail.com>

```
On Thu, Aug 28, 2008 at 3:43 PM, Paolo Ciarrocchi
<paolo.ciarrocchi@gmail.com> wrote:
>> Hi all,
>> i'm looking for a way to use git behind a corporate proxy which
>> requires authentication.
>> i just need to be able to fetch/pull via http.
>> i'm using git on a win xp box.
>> Any hint?
>
> Yes, google for  http_proxy ;-)
>
> export http_proxy=http://host:port
> git clone http://username:password@giturl

I tried setting, export http_proxy=http://<user>:<password>@host:port

But git clone failed!

$git clone http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git git
clone http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Initialized empty Git repository in /home/dilipm/bin/linux-2.6/.git/
fatal:
http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/info/refs
download error - The requested file was not found

What may the problem?  How can debug....


PS: wget works ...



-- 
Dilip

```

## Paolo Ciarrocchi, 2008-11-04 11:13

Subject: Re: Fetch via http and proxy which requires authentication
Message-ID: <4d8e3fd30811040313x44290557yecfedb2fbc8cad0b@mail.gmail.com>
URL: https://gitlist.dev/e/4d8e3fd30811040313x44290557yecfedb2fbc8cad0b%40mail.gmail.com
In-Reply-To: <c94f8e120811030602p57007278p5a2c48ce7663282d@mail.gmail.com>

```
On Mon, Nov 3, 2008 at 3:02 PM, Dilip M <dilipm79@gmail.com> wrote:
> On Thu, Aug 28, 2008 at 3:43 PM, Paolo Ciarrocchi
> <paolo.ciarrocchi@gmail.com> wrote:
>>> Hi all,
>>> i'm looking for a way to use git behind a corporate proxy which
>>> requires authentication.
>>> i just need to be able to fetch/pull via http.
>>> i'm using git on a win xp box.
>>> Any hint?
>>
>> Yes, google for  http_proxy ;-)
>>
>> export http_proxy=http://host:port
>> git clone http://username:password@giturl
>
> I tried setting, export http_proxy=http://<user>:<password>@host:port
>
> But git clone failed!
>
> $git clone http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git git
> clone http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
> Initialized empty Git repository in /home/dilipm/bin/linux-2.6/.git/
> fatal:
> http://kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/info/refs
> download error - The requested file was not found
>
> What may the problem?  How can debug....

Works for me:
$ git version
git version 1.6.0.2.1172.ga5ed0

I set in the Environment Variables panel:

Variable          Value
http_proxy      http://ip_of_my_proxy

Regards,
-- 
Paolo
http://paolo.ciarrocchi.googlepages.com/

```

## Dilip M, 2008-11-06 13:29

Subject: Re: Fetch via http and proxy which requires authentication
Message-ID: <c94f8e120811060529i4e51ebefr2e14f8212ead6752@mail.gmail.com>
URL: https://gitlist.dev/e/c94f8e120811060529i4e51ebefr2e14f8212ead6752%40mail.gmail.com
In-Reply-To: <4d8e3fd30811040313x44290557yecfedb2fbc8cad0b@mail.gmail.com>

```
On Tue, Nov 4, 2008 at 4:43 PM, <paolo.ciarrocchi@gmail.com> wrote:
> Works for me: $ git version git version 1.6.0.2.1172.ga5ed0
>
> I set in the Environment Variables panel:
>
> Variable          Value http_proxy      http://ip_of_my_proxy

Okay it solved now. Problem was old version of GIT. libcurl library
problem.

Upgrade the OS ,which in turn upgraded the libs...

Working fine for me too..


-- 
Dilip

```
