Re: [SlimDevices: SqueezeCenter] Case Sensitive Player MAC with wget but Not HTTP?

2018-11-23 Thread paul-


sodface wrote: 
> 
> I hate it when I get wrapped around the axle on something like this.  I
> need to just use lower case query strings and move on!

Lol. Know the feeling.



piCorePlayer a small player for the Raspberry Pi in RAM. 
Homepage: https://www.picoreplayer.org

Please 'donate'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations=U7JHY5WYHCNRU=GB_code=USD=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
if you like the piCorePlayer

paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858
View this thread: http://forums.slimdevices.com/showthread.php?t=109772

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Case Sensitive Player MAC with wget but Not HTTP?

2018-11-23 Thread bpa


Enabling logging network.http to DEBUG (maybe just INFO could work) will
log the wget request but it will also log a lot of other activity so set
back to ERROR level ASAP  - look for "GET /music/current/cover?player" 
in server.log.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=109772

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Case Sensitive Player MAC with wget but Not HTTP?

2018-11-23 Thread sodface


fragfutter wrote: 
> It's unencrypted http, so you can sniff it using tcpdump or Wireshark.
> 
> 

I've used wireshark multiple times in the past, I'm no expert but I'm
not unfamiliar with it either.  I installed it on my Windows LMS server
and I'm now more confused.  The GET url strings for the cover art coming
from the clients match the case of what I'm using in the client,
regardless of browser.  So it looks like I'm wrong to accuse the browser
of silently changing my url strings to lower case.

I can still duplicate the issue with Opera though.  I see the GET
strings come into the server with same character case used in the
client, upper or lower, but sometimes the server returns the default
icon file (type PNG) and other times, at least with Opera, it returns
the cover art (type JPEG).  Chrome requests always result in the server
returning the expected image, for all upper case MAC in the request it
returns default icon (type PNG) and for lower case MAC it returns the
cover art (type JPEG).

There must be some cache thing or something going on that I'm not
understanding.  I installed the same version of Opera that I'm using on
my client laptop on the LMS server and it seems to work ok which is
confusing too - displaying either the default icon or the cover art
depending on the case of the request string.

I hate it when I get wrapped around the axle on something like this.  I
need to just use lower case query strings and move on!



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=109772

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Case Sensitive Player MAC with wget but Not HTTP?

2018-11-22 Thread fragfutter


It's unencrypted http, so you can sniff it using tcpdump or Wireshark.

Gesendet von meinem Nexus 5X mit Tapatalk



sent from a computer using a keyboard

fragfutter's Profile: http://forums.slimdevices.com/member.php?userid=35184
View this thread: http://forums.slimdevices.com/showthread.php?t=109772

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Case Sensitive Player MAC with wget but Not HTTP?

2018-11-22 Thread sodface


I looked at this again briefly this morning because it's been bugging me
a little.  There's a recent similar report here:

https://productforums.google.com/forum/#!msg/chrome/bjSLuj5DpE8/ONuFHk7wBwAJ

My chrome was a bit out of date so I updated and that fixed the issue.

I updated Opera also but it looks like it's still broken.  I cleared the
browser image cache and also tried holding down control while doing a
page refresh but I still get the correct cover art whether I use upper
of lower case characters in the player mac.

For completeness, I should probably figure out if there's a logging
option I can enable on LMS for these queries so I can see the actual
request strings that the server sees.



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=109772

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Case Sensitive Player MAC with wget but Not HTTP?

2018-11-19 Thread sodface


Greg Erskine wrote: 
> hi sodface,
> 
> FYI:
> 
> 1. piCorePlayer MAC address routines always convert MAC addresses to
> lower case. It was done that long ago I can't remember exactly why.
> 
> 2. piCorePlayer mostly uses BusyBox wget. On the odd occasion, we
> install the full GNU wget (wget.tcz). Changes to BusyBox wget has caused
> us issues in the past.
> 
> regards
> Greg

Thanks Greg.  I guess so long as the client and server are always using
or converting to all lowercase then it would never be an issue.  I just
find it odd behavior that Chrome and Opera would both silently change a
requested url to lower case when characters after the domain name
portion of the url are allowed to be mixed case, and you won't get the
page you are requesting if there's a mismatch.



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=109772

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Case Sensitive Player MAC with wget but Not HTTP?

2018-11-19 Thread Greg Erskine


hi sodface,

FYI:

1. piCorePlayer MAC address routines always convert MAC addresses to
lower case. It was done that long ago I can't remember exactly why.

2. piCorePlayer mostly uses BusyBox wget. On the odd occasion, we
install the full GNU wget (wget.tcz). Changes to BusyBox wget has caused
us issues in the past.

regards
Greg



Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=109772

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Case Sensitive Player MAC with wget but Not HTTP?

2018-11-19 Thread sodface


Thanks for the replies, I believe the browser is to blame.  Chrome and
Opera both retrieve the correct cover art with upper or lower case mac
in the request url.  I didn't think to try it last night or before
posting this thread, but I just tried Internet Explorer and it works the
same way as wget - upper case mac gets me a default icon and lower case
mac gets me the correct cover art.

So it the case of Chrome and Opera (shared code?) it looks like the
browser is rewriting the requested url to all lowercase?

Here's a similar question with someone complaining about his server
logging hits to all lower case urls when the correct url is upper or
mixed case:
https://webmasters.stackexchange.com/questions/103189/why-is-my-site-getting-requests-for-urls-converted-to-lowercase

With the answer being blamed on many things, but not the browser.  I
haven't researched it, but if upper or mixed case urls are allowed, the
browser shouldn't be rewriting request urls to lower case.  It may be
bad practice to use urls with upper case characters but the browser
should respect the link or whatever the user types into the url bar.

In this case it looks to me like LMS is operating correctly and it was
Chrome and Opera that derailed me yesterday doing my testing as I didn't
catch the case change between wget and the browser immediately and I
couldn't figure out why wget kept pulling the wrong cover art.  The mac
displayed by ifconfig is all upper case, so that was the easiest thing
to get and paste into the wget url.



sodface's Profile: http://forums.slimdevices.com/member.php?userid=19057
View this thread: http://forums.slimdevices.com/showthread.php?t=109772

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Case Sensitive Player MAC with wget but Not HTTP?

2018-11-19 Thread DJanGo


bpa wrote: 
> so I think now player id in this case player id is created from the
> lowercase version of MAC Address.
Yapp

Code:

printf "player id 0 ?\nexit\n"|nc 127.0.0.1 9090|sed 's/%3A/:/g'


Always return lowercase macaddress



DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
View this thread: http://forums.slimdevices.com/showthread.php?t=109772

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Case Sensitive Player MAC with wget but Not HTTP?

2018-11-18 Thread bpa


I can't be sure on the URL but in many places in the LMS code the Player
Id is an string which can identify the player uniquely.  Originally it
was derived from h/w player MAC address but with newer players (touch &
Radio) and s/w p[layers - slimproto was extended so  the player ID can
be a UUID (string of lower case letters and digits)  so I think now
player id in this case player id is created from the lowercase version
of MAC Address.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=109772

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Case Sensitive Player MAC with wget but Not HTTP?

2018-11-18 Thread fragfutter


Could you quote Thema Url? As there is a question mark in it which could
be expanded depending on the shell used.

Gesendet von meinem Nexus 5X mit Tapatalk



sent from a computer using a keyboard

fragfutter's Profile: http://forums.slimdevices.com/member.php?userid=35184
View this thread: http://forums.slimdevices.com/showthread.php?t=109772

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter