Git Product home page Git Product logo

vcr_proxy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vcr_proxy's Issues

General problem

I've set up your code as a proxy server.
In my client code I use Watir and phantomJS point to the VCR proxy.
If I comment out "use_cassette", everything works (my page is loading and the JS calls are running), but of course nothing is recording in VCR.
As soon as I use VCR in the proxy, it seems something is blocked or just broken.
The function "routine" is called, but do_CONNECT is never called.
I'm not sure how to debug/log effectively to find out what's happening.
Did anyone run into these problems?
Can anyone tell me how I can debug effectively what's going on?
Thanks in advance!

M.

how to playback recordings

I was able to get the vcr_proxy.rb server up and running and I've obtained the recordings I wish to playback. I want to use these recordings test a single page javascript application, but how do I use the proxy server as an endpoint for my JS if requests need to be proxied in order to match my recordings?

I want to avoid creating an additional server that my JS will call just so I can make the proxy request to the vcr_proxy. I also want to avoid setting my browser to the proxy as the proxy server will not be serving the assets, only my json responses.

Find open port for MITM server / doesn't start a new server for every request

For every HTTPS request, a new MITM server is started. This is because the certificate needs to set the host (see vcr_proxy.rb:32) for every request, because they could be different. And because of that, for every request a free port is needed.

How could this be improved? First it's slow, and second when more and more requests are made, the port numbers could run out.

VCR cassette naming

At the current version, the name of the cassette is fixed. Any clever idea, how to make the cassettes configurable?

For example: If I have a lot of ajax requests going to a lot of different endpoints, everything get's recorded into the same name.

No option to record cookies

I am using capybara-webkit to build a website crawler. To test my crawler I was hoping to use vcr_proxy. However, I can not read previously set cookies via capybara when I visit a site being read from a vcr_proxy created cassette.

Is there a way to enable this? I am new to ruby...and development. However, happy to help make this happen in any way that I can.

Where to put VCR.use_cassette

When a lot of requests are made, VCR complains that there is already a cassette in use, and the cassettes could not be nested. By now, VCR.use_cassette is called in the service method. Any ideas how to improve this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.