Getting URL of a shoutcast server....
Mark Schonewille
m.schonewille at economy-x-talk.com
Mon Jul 8 12:19:09 EDT 2013
Hi Andrew,
That must be it. The httpHeaders (or libUrlCustomHttpHeaders) are empty
by default. However, if I check the user agent by connecting to a PHP
script on my server, the server says the agent is "Revolution (MacOS)"
or "LiveCode (MacOS)", even though the httpHeaders are empty.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other
colour spaces. http://www.color-converter.com
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/
On 7/8/2013 17:43, Andrew Kluthe wrote:
> What does livecode's user-agent read as by default? Is it possible that the
> shoutcast server is not recognizing the user agent livecode presents and
> therefore not sending data?
>
> on mouseUp
> libURLSetCustomHTTPHeaders "GET / HTTP/1.1" & cr &"User-Agent:
> Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko)
> Chrome/27.0.1453.116 Safari/537.36"
> put URL"http://stream-11.streamsolutions.co.uk:9428/" into sUrl
> answer sUrl
> end mouseUp
>
> produces the expected results for me.
>
More information about the use-livecode
mailing list