Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Planet Rock Stream
#8
(09-14-2021, 06:24 PM)stanfordcg Wrote: if i try to curl direct:
curl -o /dev/null https://tx.planetradio.co.uk/icecast.php...etrock.mp3
the file fails to download.

Yeah, this is an issue involving the Internet not your hardware.

When on my Linux laptop I ask curl for information about the URL I get different answers from a USA IP address and a UK IP address (e.g., via VPN)

1) USA

Code:
kreed@T520:~$ curl -I https://tx.planetradio.co.uk/icecast.php?i=planetrock.mp3
HTTP/1.1 403 Forbidden
...

2) UK

Code:
kreed@T520:~$ curl -I https://tx.planetradio.co.uk/icecast.php?i=planetrock.mp3
HTTP/1.1 302 Found
Date: Tue, 14 Sep 2021 18:33:42 GMT
Server: Apache
Set-Cookie: PHPSESSID=keoe2gpe61jrii18rdg9qisu75; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://edge-bauermz-03-gos2.sharp-stream.com/planetrock.mp3
Access-Control-Allow-Origin: *
Content-Type: text/html; charset=UTF-8

Aha. Note how it redirects to http://edge-bauermz-03-gos2.sharp-stream...etrock.mp3

Interestingly, this latter URL resolves to a music stream even from a USA IP address, to wit:


Code:
kreed@T520:~$ curl -I http://edge-bauermz-03-gos2.sharp-stream.com/planetrock.mp3
HTTP/1.0 200 OK
icy-br: 112
icy-pub: 0
icy-description: Unspecified description
icy-url:
Instance-id: 32c1fd9c4b6c73da8cb9d7f6c2207697
Cache-Control: no-cache
Server: edge-bauermz-03-gos2.sharp-stream.com 8.6.3
icy-genre: various
Expires: Mon, 26 Jul 1997 05:00:00 GMT
icy-metaint: 0
Pragma: no-cache
icy-name:
Connection: close
Content-Type: audio/mpeg
Set-Cookie: AISSessionId=613a8bb3004ac9e0_417747_e6Pepcp9_OTEuMTkzLjI0NS4xMDc!_00000007E6S; Path=/; Domain=edge-bauermz-03-gos2.sharp-stream.com; Max-Age=6000; Expires=Tue, 14 Sep 2021 20:15:50 GMT; SameSite=None; Secure

I'm listening to it as I type. See if you can play it too.

Regards,
Kent
Reply


Messages In This Thread
Planet Rock Stream - by stanfordcg - 09-14-2021, 09:56 AM
RE: Planet Rock Stream - by Sniglar - 09-14-2021, 10:46 AM
RE: Planet Rock Stream - by stanfordcg - 09-14-2021, 11:08 AM
RE: Planet Rock Stream - by Sniglar - 09-14-2021, 11:45 AM
RE: Planet Rock Stream - by TheOldPresbyope - 09-14-2021, 05:09 PM
RE: Planet Rock Stream - by stanfordcg - 09-14-2021, 05:35 PM
RE: Planet Rock Stream - by stanfordcg - 09-14-2021, 06:24 PM
RE: Planet Rock Stream - by TheOldPresbyope - 09-14-2021, 06:39 PM
RE: Planet Rock Stream - by stanfordcg - 09-14-2021, 07:28 PM

Forum Jump: