[TIP] Capture HTTP traffic
Ronny Pfannschmidt
Ronny.Pfannschmidt at gmx.de
Thu Nov 4 10:32:44 PDT 2010
On Thu, 2010-11-04 at 17:03 +0100, Alex wrote:
> 2010/11/3 Olemis Lang <olemis at gmail.com>:
> > Probably I didn't understand your original question . If that's the
> > case , please tell so that we can refine the answer .
>
> I am writing the test of a C++ application. I have access the C++
> source code but prefer not to alter it.
>
> 2010/11/3 Olemis Lang <olemis at gmail.com>:
> > Fiddler : A really good proxy for dev-ing with scripting
> > support (Python ?) , pause , stop , replay ,
> > request builder, plugin system,
> > programmatic API ... for Windows
> > AFAIK (if you find a -multiplatform ?-
> > FOSS alternative please let me know)
>
> This is what I am trying but not yet have a conclusion.
>
> > wsgi_intercept : To intercept HTTP requests
> > twill | mechanize : For high-level HTTP commands (and more ...)
>
> The target to be tested is a C++ application, so Python tools like
> wsgi_intercept, twill, mechanize do not apply.
>
> > Integrating pycap is really not trivial, IMO .
>
> That's why I am looking for some alternatives here.
>
> 2010/11/3 C. Titus Brown <ctb at msu.edu>:
> > you could write a simple HTTP server of your own, and run it in another
> > thread. That doesn't help if you need to call remote URLs, though.
>
> It requires a lot of work to mock the HTTP server. Besides, I need
> some reliable mechanism to redirect the HTTP requests issued by the
> test target (C++ application) to 'localhost'.
you might want to either hijac the hosts configuration on the test
system or just use a selective transparent proxying scheme
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20101104/95071e72/attachment.pgp>
More information about the testing-in-python
mailing list