mardi 17 février 2015

How to determine the type of content on the URL?

There is such a link on the radio: http://ift.tt/1Ahmqi7 In the browser and the player played without problems. There is a problem, how determine, using the HTTP request or some other method, is this URL with the audio stream (radio)?


Try this:



telnet roks.com 8000
GET /live HTTP/1.1


In response to receiving:



HTTP/1.1 400 Bad Request
Server: nginx/1.4.6 (Ubuntu)
Date: Tue, 17 Feb 2015 11:11:25 GMT
Content-Type: text/html
Content-Length: 181
Connection: close

<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.4.6 (Ubuntu)</center>
</body>
</html>




Aucun commentaire:

Enregistrer un commentaire