[rtmpdump] [PATCH] HTTP Proxy Support

Daniel Burr dburr at topcon.com
Mon Aug 16 01:37:35 CEST 2010


The attached patch adds the ability to specify a HTTP proxy to be used 
for RTMPT.  This functionally requires only 2 changes:
1.  The hostname/port of the proxy needs to be used when establishing 
the connection instead of connecting directly to the target server.
2.  The POST request needs to specify the full absolute URL (i.e. server 
name and path name) instead of just the relative path name. 
Theoretically this should not be necessary because the proxy should use 
the hostname from the "Host:" header, but it seems that in practice this 
field is not honoured by at least some proxy implementations 

The remainder of the changes in the patch are to:
1.  Add a new command line argument (--http) to rtmpdump and rtmpgw to 
allow the HTTP proxy to be specified.
2.  Add a new struct (RTMPSockInfo) which is used to store target 
server, SOCKS proxy and HTTP proxy information so that they can be 
easily treated in a generic fashion.


Confidentiality Notice:  This message (including attachments) is a private communication solely for use of the intended recipient(s).  
If you are not the intended recipient(s) or believe you received this message in error, notify the sender immediately and then delete this 
message.  Any other use, retention, dissemination or copying is prohibited and may be a violation of law, including the Electronic 
Communication Privacy Act of 1986."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtmpdump-http-proxy.patch
Type: text/x-patch
Size: 14104 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20100816/cdc19fa8/attachment-0001.bin>

More information about the rtmpdump mailing list