Yes it should be feasible, and true it seems that the Ruby community has much more ferment in this area.<br><br>Anyway it would be great to do the same thing recording directly the TCP/IP streams.<br>There are probably a few problems with that:<br>

1. need to be root to sniff the network traffic<br>2. might need to rewrite a lot of packets when replaying because they depend on the specific<br>   network configuration of the machine<br><br>so maybe it&#39;s not really easy after all, what do you think?<div>

<br></div><div>Yup, also recording TCP intereaction will make things a lot more difficult.</div><div>When you replay the http interactions, you only need to use the url, the headers and the body as key to find the recorded response(i guess).</div>

<div><br><div class="gmail_quote">2012/3/27 Andrea Crotti <span dir="ltr">&lt;<a href="mailto:andrea.crotti.0@gmail.com">andrea.crotti.0@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On 03/27/2012 02:24 PM, <a href="mailto:vanderson.mota@gmail.com" target="_blank">vanderson.mota@gmail.com</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
VCR, as far as i know only works for HTTP. It is very easy to use, and unfortunately i didn&#39;t find a match for it in python. It seems people are more concerned about building &quot;My new cool ruby-like test runner&quot;.<br>


<br>
The coding strategy to make VCR was to monkeypatch the Http Libraries, like the basic Net::Http, since there are a lot of http clients use it under the hood. And for the ones who don&#39;t, the author wrote an adapter for the most popular ones[1].<br>


<br>
I think similar approach can be used with python.<br>
<br>
1: <a href="https://github.com/myronmarston/vcr/tree/master/lib/vcr/library_hooks" target="_blank">https://github.com/<u></u>myronmarston/vcr/tree/master/<u></u>lib/vcr/library_hooks</a><br>
</blockquote>
<br>
<br></div>
Yes it should be feasible, and true it seems that the Ruby community has much more ferment in this area.<br>
<br>
Anyway it would be great to do the same thing recording directly the TCP/IP streams.<br>
There are probably a few problems with that:<br>
1. need to be root to sniff the network traffic<br>
2. might need to rewrite a lot of packets when replaying because they depend on the specific<br>
    network configuration of the machine<br>
<br>
so maybe it&#39;s not really easy after all, what do you think?<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Vanderson Mota dos Santos<br><br>
</div>