Guys, <div><br></div><div>Both <i>curl</i> and <i>wget</i> works perfectly when querying node status with "?t=json" argument - just tested on Ubuntu.</div><div>I can't see any reason to complicate <i>monitoring tools</i> with changing headers while parameter is quite enough!</div>

<div><br></div><div><div><div><em>Sincerely,<br>Oleksandr Drach,</em></div>
<div><br><em>e-mail: </em><a href="mailto:luckyredhot@gmail.com" target="_blank"><em>luckyredhot@gmail.com</em></a><em>.</em><br></div></div>
<br><br><div class="gmail_quote">2013/2/26 Kevin Reid <span dir="ltr"><<a href="mailto:kpreid@switchb.org" target="_blank">kpreid@switchb.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Feb 26, 2013, at 5:38, <a href="mailto:kpneal@pobox.com">kpneal@pobox.com</a> wrote:<br>
<br>
> On Mon, Feb 25, 2013 at 08:29:48PM -0800, Peter Secor wrote:<br>
>> The WUI usually has a pretty good json representation of most screens, just tack on a query arg ?t=json to the WUI URL and see what you get. I used to use it a lot when running scripts to check node usage but it's also useful for scraping other node stats.<br>


><br>
> The correct way to do this is to send an "Accept: application/json" header in the request. Don't change the url to specify the type of return data. The response should have the same mime type.<br>
><br>
> This follows normal REST design patterns.<br>
<br>
</div>While it is true that a server should always respect the Accept header, and that programmatic interactions should make use of it, I disagree that a URL parameter is *inappropriate to offer*; the URL parameter is highly useful for debugging/exploration, and from a REST+caps perspective can be seen as an alternate resource (facet) with fewer available representations.<br>


<br>
That is, the server should support *both* Accept and ?t=, and clients should prefer to use Accept (at least, they should prefer Accept over matching and modifying a URL they receive).<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Kevin Reid                                  <<a href="http://switchb.org/kpreid/" target="_blank">http://switchb.org/kpreid/</a>><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
tahoe-dev mailing list<br>
<a href="mailto:tahoe-dev@tahoe-lafs.org">tahoe-dev@tahoe-lafs.org</a><br>
<a href="https://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev" target="_blank">https://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev</a><br>
</div></div></blockquote></div><br></div>