Mailing Lists
|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[curl:bugs] #1278 librtmp needs the #-fragment part of the URL to be kept
From: Gorilla Maguila <gorillamaguila_at_users.sf.net>
Date: Thu, 12 Sep 2013 19:43:14 +0000
Don't get annoyed.
I'm just trying to help ;)
Maybe my bad after all. It seems that using hexadecimal representation works on librtmp ex: token=\23abc works as token=#abc
Sorry for the disturbance
--- ** [bugs:#1278] librtmp needs the #-fragment part of the URL to be kept** **Status:** open-confirmed **Labels:** rtmp token utf-8 character **Created:** Wed Sep 11, 2013 03:58 PM UTC by Gorilla Maguila **Last Updated:** Thu Sep 12, 2013 07:17 PM UTC **Owner:** Daniel Stenberg Steps to reproduce: ~~~~~~ $curl "rtmp://live.iguide.to/edge swfUrl=http://player.ilive.to/player_ilive_2.swf pageUrl=http://www.ilive.to playpath=nz7l9vc5nv1og7b token=#e87JDUJD264YED687 live=1" ~~~~~~ Output: ~~~~~~ ERROR: RTMP_ReadPacket, failed to read RTMP packet header curl: (2) Failed initialization ~~~~~~ The error happens due to not parsing the correct token because of "#" character. To test that I just put a printf in rtmp_setup like this: ~~~~~~ static CURLcode rtmp_setup(struct connectdata *conn) { RTMP *r = RTMP_Alloc(); if(!r) return CURLE_OUT_OF_MEMORY; RTMP_Init(r); RTMP_SetBufferMS(r, DEF_BUFTIME); printf( "CURLcode rtmp_setup %s \n", conn->data->change.url); if(!RTMP_SetupURL(r, conn->data->change.url)) { RTMP_Free(r); return CURLE_URL_MALFORMAT; } conn->proto.generic = r; return CURLE_OK; } ~~~~~~ The output is: ~~~~~~ CURLcode rtmp_setup rtmp://live.iguide.to/edge swfUrl=http://player.ilive.to/player_ilive_2.swf pageUrl=http://www.ilive.to playpath=nz7l9vc5nv1og7b token= ERROR: RTMP_ReadPacket, failed to read RTMP packet header curl: (2) Failed initialization ~~~~~~ If no "#" it's present the token it's parsed correctly: ~~~~~~ $curl "rtmp://live.iguide.to/edge swfUrl=http://player.ilive.to/player_ilive_2.swf pageUrl=http://www.ilive.to playpath=nz7l9vc5nv1og7b token=e87JDUJD264YED687 live=1" ~~~~~~ Although the rtmp response fails as it's normal: ~~~~~~ CURLcode rtmp_setup rtmp://live.iguide.to/edge swfUrl=http://player.ilive.to/player_ilive_2.swf pageUrl=http://www.ilive.to playpath=nz7l9vc5nv1og7b token=e87JDUJD264YED687 live=1: ERROR: RTMP_ReadPacket, failed to read RTMP packet header curl: (2) Failed initialization ~~~~~~ --- Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.Received on 2013-09-12 These mail archives are generated by hypermail. |
Page updated May 06, 2013.
web site info