david_cornewell
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2010
03:26 PM
Spaces not allowed in streamURL tag?
This does not work for me.
My web server reports an error. It gets a request for http://myserver/videos/01. Whatever is parsing the URL out of the XML does not seem to like the space. I have tried URL encoding the filename, but http://myserver/videos/01+First+Video.mp4 is not the URL to get that file. I renamed the file 01_First_Video.mp4 and everything works great. I'd like to support spaces in the file name if possible.
Anyone know if there is a way?
<streamUrl>http://myserver/videos/01 First Video.mp4</streamUrl>
My web server reports an error. It gets a request for http://myserver/videos/01. Whatever is parsing the URL out of the XML does not seem to like the space. I have tried URL encoding the filename, but http://myserver/videos/01+First+Video.mp4 is not the URL to get that file. I renamed the file 01_First_Video.mp4 and everything works great. I'd like to support spaces in the file name if possible.
Anyone know if there is a way?
2 REPLIES 2
retrotom
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2010
04:01 PM
Re: Spaces not allowed in streamURL tag?
Can you just replace the spaces with "%20"?
david_cornewell
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2010
07:20 PM
Re: Spaces not allowed in streamURL tag?
That was exactly it. I'm using PHP and called urlencode() to encode it. That replaces spaces with a plus sign which is the old way of doing things. I'm calling rawurlencode() now and that conforms to RFC3986 which says to replace spaces with %20 like you suggested. It works great. Thank you.