<div>Hi Frank,</div><div>I did that and can see that Chrome is sending on accept: argument, then include it on HTTPSocket and now it WORKS perfectly. I use:</div><div><br></div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>httpGetDocument: &#39;<a href="http://aServer/zips/20101125.zip">http://aServer/zips/20101125.zip</a>&#39; </div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>accept: &#39;application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5&#39;</div><div><br></div><div>Thanks again,</div><div>
FV</div><div><br></div><div>p.s.: previusly I had probed with &#39;application/x-zip-comp&#39; without success</div><br><div class="gmail_quote">On Tue, Feb 8, 2011 at 6:57 PM, Frank Shearar <span dir="ltr">&lt;<a href="mailto:frank.shearar@angband.za.org">frank.shearar@angband.za.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Facundo,<br>
<br>
What&#39;s quite useful is right-clicking one of the packets and selecting (if I recall correctly - I&#39;m not in a position to check) the &quot;Follow TCP stream&quot; menu item. That will display a text version of the entire call flow, above the TCP level.<br>

<br>
In particular, I think you need to tell HttpClient you will accept a stream containing a zip. That might be application/zip. You can check by comparing the GET that Chrome sends versus the GET HttpClient sends.<br><font color="#888888">
<br>
frank</font><div class="im"><br>
<br>
On 2011/02/08 21:19, Facundo Vozzi wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi Frank,<br>
I did that but it seem very similar, I need look it in detail later. By<br>
doubts, attached images.<br>
<br>
Thank you,<br>
FV<br>
<br>
On Tue, Feb 8, 2011 at 5:24 PM, Frank Shearar<br></div><div class="im">
&lt;<a href="mailto:frank.shearar@angband.za.org" target="_blank">frank.shearar@angband.za.org</a> &lt;mailto:<a href="mailto:frank.shearar@angband.za.org" target="_blank">frank.shearar@angband.za.org</a>&gt;&gt; wrote:<br>

<br>
    Try running Wireshark and see the message flow Chrome uses. Compare<br>
    that with the message flow when you use HttpClient.<br>
<br>
    frank<br>
<br>
<br>
    On 2011/02/08 20:16, Diogenes Moreira wrote:<br>
<br>
        can you contact to http server admin.?? may be in server&#39;s log<br>
        you can<br>
        find more information..<br>
<br>
        On Tue, Feb 8, 2011 at 5:10 PM, Facundo Vozzi<br>
        &lt;<a href="mailto:facundov79@gmail.com" target="_blank">facundov79@gmail.com</a> &lt;mailto:<a href="mailto:facundov79@gmail.com" target="_blank">facundov79@gmail.com</a>&gt;<br></div><div class="im">
        &lt;mailto:<a href="mailto:facundov79@gmail.com" target="_blank">facundov79@gmail.com</a> &lt;mailto:<a href="mailto:facundov79@gmail.com" target="_blank">facundov79@gmail.com</a>&gt;&gt;&gt; wrote:<br>
<br>
            Hi Diogenes,<br>
            I had suposed a server security issue but the strange is<br>
        that with<br>
            some files always work and with others never. From Chrome it<br>
        works<br>
            fine for download any files.<br>
<br>
            Thanks,<br>
            FV<br>
<br>
            On Tue, Feb 8, 2011 at 4:47 PM, Diogenes Moreira<br>
        &lt;<a href="mailto:diogenes.moreira@gmail.com" target="_blank">diogenes.moreira@gmail.com</a> &lt;mailto:<a href="mailto:diogenes.moreira@gmail.com" target="_blank">diogenes.moreira@gmail.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:diogenes.moreira@gmail.com" target="_blank">diogenes.moreira@gmail.com</a><br>
        &lt;mailto:<a href="mailto:diogenes.moreira@gmail.com" target="_blank">diogenes.moreira@gmail.com</a>&gt;&gt;&gt; wrote:<br>
<br>
        <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7" target="_blank">http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7</a><br>
<br>
        &lt;<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7" target="_blank">http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7</a>&gt;This<br>
                error is reported by the Http Server.. that isn&#39;t client<br>
        problem..<br>
<br>
                May be, your provider was implemented a browser cain&#39;s<br>
        filter<br>
                (most typical) or apache&#39;s mod_security.<br>
<br>
                Best<br>
<br>
                D.<br>
<br>
                On Tue, Feb 8, 2011 at 4:39 PM, Facundo Vozzi<br>
        &lt;<a href="mailto:facundov79@gmail.com" target="_blank">facundov79@gmail.com</a> &lt;mailto:<a href="mailto:facundov79@gmail.com" target="_blank">facundov79@gmail.com</a>&gt;<br></div><div class="im">
        &lt;mailto:<a href="mailto:facundov79@gmail.com" target="_blank">facundov79@gmail.com</a> &lt;mailto:<a href="mailto:facundov79@gmail.com" target="_blank">facundov79@gmail.com</a>&gt;&gt;&gt; wrote:<br>
<br>
                    Hi all,<br>
                    I&#39;m downloading some zip files from a HTTP server with<br>
                    HTTPClient in this way:<br>
<br>
                    HTTPClient httpGetDocument:<br>
        &#39;<a href="http://anInternetAddress/files/20101101.zip" target="_blank">http://anInternetAddress/files/20101101.zip</a>&#39;<br>
<br>
                    And it works fine some times and others times not.<br>
        The files<br>
                    are uploaded periodicaly and with some files always<br>
        work and<br>
                    with others never work. The error that I got when I<br>
        do it is:<br>
<br>
                    HTTP/1.0 406 Not Acceptable<br>
<br>
                    Anyone haveanyideathat canhappen?<br>
<br>
                    Thanks in advance,<br>
                    FV<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div></blockquote>
<br>
<br>
</blockquote></div><br></div>