I looked at git's siurce recently because of the related problem. I was
looking at SmartHTTP protocol specific code and dont see in you message is
about git: or http: protocol, but it could be the same code in the back...

When a recent git client sends a pack file larger than 1mb it switches curl
from http/1.0 to http/1.1, sets ecpect 100 and Transfer-Encoding: chunked

I saw git's libcurl actually NOT wait for answer to expect header and
startsending data in under half a second.

By the looks of it, your work's proxy is not able to process http/1.1
Chunked REQUEST body.

I also did not see any override code in git's invocation of http/1.1
Chunked. It actually does the right thing switching to Chunked requests on
large bodies.

Try using ssh-based connection. It's not http, and thus the headers dont
metter. Otherwize, petition git developers to program an option to override
git client for http proticol to down-switch to http/1.0 for large bodies.


D D




  Topic: Behind Proxy and Getting HTTP code =
417<http://groups.google.com/group/git-users/t/d797e6b87ca61434>

   James Fang <james.fang...@gmail.com> Oct 06 09:22AM -0700 ^ <#digest_top>

   our company provide internet access for us using proxy,
   but after configured http.proxy, i am keeping get HTTP code 417

   After a little google, i guess it's because the libcurl that git
   use sent the "Expect: 100-continue" header, which the proxy(i guess a
   Squid)
   does not understand and reply with 417: Expection failed.

   I can not change the proxy setting, so below are my questions:
   1) can i disable the Expect header of libcurl?
   i know i can use -H option of curl(the binary), but seems git/
   libcurl does not
   support this option.
   2) or how can i get around this problem without do anything with the
   proxy ?

   Thanks in advance,




   James Fang <james.fang...@gmail.com> Oct 06 09:26AM -0700 ^ <#digest_top>

   maybe some script sit between git and the proxy, just strip off all
   the "Expect" header?
   is there such kind of utility program out of box?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to