Re: How to set up an AMF-aware http proxy using OpenAMF?

Todd Hivnor <[email protected]> Sun, 04 Dec 2005 18:10:24 -0800
Newsgroups gmane.comp.java.openamf.user
Message-ID <[email protected]>
ServiceCapture is a debugging tool, for watching HTTP and AMF traffic. 
It is implemented as an HTTP proxy server, and it is AMF aware. When it 
starts up, it configures MSIE to use a proxy server, in a way which is 
nicely transparent to the end user. All HTTP traffic is then captured 
and logged, and you can dig into the AMF messages and see what they 
contain. For debugging client/server apps, it is way better than the 
Network Connection Debugger in the Flash IDE. It is not, however, open 
source. It is $35, and requires Windows. This may not be super-helpful 
for you, since you are probably looking for source code. But is an 
example of an AMF-aware proxy server. And it is also just a great 
debugger worth mentioning on this list.

URL is
http://kevinlangdon.com/serviceCapture/

As an aside, if you want to implement an AMF-aware proxy server, you 
might be better of using ASTranslator directly. See 
http://sourceforge.net/projects/carbonfive/. I'm not sure if OpenAMF 
will help you, or get in the way. But I do know you can use ASTranslator 
directly, and it seems this would be more straight-forward than trying 
to force OpenAMF to do stuff it isn't really designed for.

 - Todd




[email protected] wrote:

>Hello.
>
>I am interested in finding out what information a Flash client and its server exchange. The data is exchanged using Flash remoting, i.e. in AMF format over http. I'd like to "wiretap" onto this data communication transparently, monitoring and logging the data on the fly.
>
>So please advise me on the best way to set up and configure a passthrough AMF-aware http proxy server. All software should preferrably be Java-based.
>
>My current plan is to set up a http proxy server, preferrably Tomcat. If Tomcat does not have a proxy feature by default included, I'd have to install for example Pipppo proxy (<http://sourceforge.net/projects/pippoproxy/>).
>
>Then I planned on entering this proxy server into the proxy settings of the web browser, causing all http traffic to be routed through my proxy server. (I assume that the Flash player uses the internet settings of the browser.) Then, when I use the Flash application, my proxy server would trace the AMF-encoded data being transferred.
>
>
>The area I'm now most interested in is how to plug the OpenAMF decoder into this setup. In other words, how to direct all monitored AMF traffic through a passthough OpenAMF-aware filter on the proxy server.
>
>
>Does anyone have any thoughts on this or suggestions on how to proceed? Has anyone done this before? Sorry if this has been discussed, I tried searching the archives... Please cc me on replies, I am not subscribed to the list.
>
>
>Leo
>
>...................................................................
>Luukku Plus paketilla pääset eroon tila- ja turvallisuusongelmista.
>Hanki Luukku Plus ja helpotat elämääsi. http://www.mtv3.fi/luukku
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems?  Stop!  Download the new AJAX search engine that makes
>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
>_______________________________________________
>Openamf-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/openamf-user
>  
>



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click