[mythtv-users] Frontend services API question

Frank Phillips frankalso at gmail.com
Wed Mar 18 20:19:35 UTC 2015


On Wed, Mar 18, 2015 at 2:52 PM, Dan Wilga <
mythtv-users2 at dwilga-linux1.amherst.edu> wrote:

>  On 3/18/15 3:14 PM, Bill Meek wrote:
>
> On 03/18/2015 01:47 PM, Phil Bridges wrote:
>
> On Wed, Mar 18, 2015 at 1:17 PM, Bill Meek <keemllib at gmail.com>
> <keemllib at gmail.com> wrote:
>
> ...
>
> I see the same with Firefox.
>
> Try it with curl (I thing you're getting cached information.):
>
>      curl <BE>:6547/Frontend/GetStatus|sed 's/></>\n</g'
>
> The sed is just to make it easier to read.
>
>
>
>  Thanks.  That did it.  Ifind it a little odd, though, that the Chrome
> REST
> tools keep seeing the cached data.
>
>
> It is odd. The 1st response contains an ETag. The 2nd query includes the
> same ETag (correctly, I believe), but even though the FE screen has
> changed from Watch Recordings to actual Playback (for my test), the
> FE returns a 304 Not Modified in the response.
>
>  In your browser, you could also try adding a random number to the end,
> and change it every time you want a new version:
>
>   mythbackend:6547/Frontend/GetStatus?foo=12345
>
> This technique is often used by Javascript libraries to avoid ornery
> clients that like to keep old stuff.
>
>
If you POST instead of GET it will give you fresh data each time, no extra
parameters necessary. You can do this with curl - I am using the Firefox
RESTClient addon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20150318/4f7f0aff/attachment.html>


More information about the mythtv-users mailing list