thanks, after remove the header, it works well.<br><br><br><div class="gmail_quote">2010/6/21 Weibin Yao <span dir="ltr">&lt;<a href="mailto:nbubingo@gmail.com">nbubingo@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">xuzheng at 2010-6-21 16:08 wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
hi, when i use nginx as a forward prxoy, some page can not be downloaded successfully.<br>
example:<br>
http_proxy=ip:port wget -O test.html <a href="http://s1.ganjistatic1.com/css/base_ue3_house.__1276756225__.css" target="_blank">http://s1.ganjistatic1.com/css/base_ue3_house.__1276756225__.css</a> --header=&#39;Proxy-Connection: keep-alive&#39; -S<br>

the received data length always less than response heade specificed length, so wget will retry again and again.<br>
if use ie or firefox, the page load very slow, I guess the browser retry many times like wget.<br>
but if not sent header &#39;Proxy-Connection: keep-alive&#39;, the page can be downloaded successfully.<br>
Any one has idea?<br>
</blockquote></div>
Nginx does not support keepalive connection with backend server.<br>
<br>
Maybe you should remove the header of  &quot;proxy-connection&quot; like this:<div class="im"><br>
<br>
proxy_set_header Proxy-Connection &quot;&quot;;<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
thanks.<div class="im"><br>
<br>
the nginx config file:<br>
server { # simple load balancing<br>
        listen          9681;<br>
        resolver  202.106.0.20;<br>
        location / {<br>
                proxy_pass      http://$http_host$request_uri;<br>
        }<br>
}<br>
<br>
the nginx version is 0.7.65-5 ,<br>
os is debian Linux dev 2.6.30-1-amd64<br>
<br>
<br></div>
------------------------------------------------------------------------<div class="im"><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
  <br>
</div></blockquote>
<br>
<br>
-- <br><font color="#888888">
Weibin Yao</font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>