Hi Saúl,<div><br></div><div>The OpenXCAP server in question is an active production machine for other services, so I'm a little hesitant to make changes to the hostfile for testing. :)</div><div><br></div><div>I did do an ngrep on the local machine and retry the query, and I do see it returning 64k of data:</div>
<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>HTTP/1.1 200 OK..Content-Length: 65535..Accept-Ranges: bytes..Server: OpenXCAP/<a href="http://2.0.0.">2.0.0.</a>.ETag: "564e6f706fbf147ee1d7b27668470a81"..Date</div>
</div><div><div> : Tue, 23 Oct 2012 09:01:50 GMT..Content-Type: application/resource-lists+xml....[..]</div></div></blockquote><div><div><br></div><div>I've also read that wget can't handle chunked data (although this response doesn't seem to be chunked), so I've tried curl, with similar results:</div>
<div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div>* Connected to [host.domain] (xx.xx.xx.xx) port 9000 (#0)</div></div></div><div><div><div>* Server auth using Basic with user '[username@host.domain]'</div>
</div></div><div><div><div>> GET /xcap-root/resource-lists/users/[username@host.domain]/index HTTP/1.1</div></div></div><div><div><div>> Authorization: Basic [..]</div></div></div><div><div><div>> User-Agent: curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/<a href="http://1.2.3.3">1.2.3.3</a> libidn/1.1</div>
</div></div><div><div><div>> Host: [host.domain]:9000</div></div></div><div><div><div>> Accept: */*</div></div></div><div><div><div>> </div></div></div><div><div><div>< HTTP/1.1 200 OK</div></div></div><div><div>
<div>< Content-Length: 65535</div></div></div><div><div><div>< Accept-Ranges: bytes</div></div></div><div><div><div>< Server: OpenXCAP/2.0.0</div></div></div><div><div><div>< ETag: "[..]"</div></div>
</div><div><div><div>< Date: Tue, 23 Oct 2012 09:07:22 GMT</div></div></div><div><div><div>< Content-Type: application/resource-lists+xml</div></div></div></blockquote><div><div><br></div><div>We may end up implementing a workaround to obtain this specific data via another route, but if you have any other ideas, I'd be happy to give them a try in case anyone else runs into a similar problem.</div>
<div><br></div><div>Cheers,</div><div>-greg</div><div><br></div><br><div class="gmail_quote">On Tue, Oct 23, 2012 at 10:35 AM, Saúl Ibarra Corretgé <span dir="ltr"><<a href="mailto:saul@ag-projects.com" target="_blank">saul@ag-projects.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Oct 23, 2012, at 10:31 AM, Greg Gladman wrote:<br>
<br>
> Hi Saúl, thanks for the quick response.<br>
><br>
> Yes, I'm just doing a standard HTTP GET; I've tried from various browsers, a JSP using java.io.BufferedReader, and a wget from the same machine, and all return just 65535 bytes.<br>
><br>
> If I try with wget from localhost using the external hostname, the results are the same; if I make the query explicitly against localhost, I get a 404 and the log file shows "XCAP root not found for URI".<br>
><br>
> Sorry for what is undoubtedly a newbie question, and thanks again for your help.<br>
><br>
<br>
</div>You can modify the /etc/hosts file to make your external domain point to 127.0.0.1 and repeat the localhost test. Also, if you do a traffic capture in the OpenXCAP server, do you see OpenXCAP only sending 64K of data?<br>
<br>
<br>
Cheers,<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Saúl Ibarra Corretgé<br>
AG Projects<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br>
</div>