Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate curlconverter with webdriver #9

Open
johndharrison opened this issue Oct 12, 2016 · 2 comments
Open

Integrate curlconverter with webdriver #9

johndharrison opened this issue Oct 12, 2016 · 2 comments

Comments

@johndharrison
Copy link
Contributor

johndharrison commented Oct 12, 2016

Hi Bob,

It would be great to integrate curlconverter with phantomjs. Phantomjs running webdriver allows you to export HAR files. V8 should be able to run https://github.com/mattcg/har-to-curl ,

  • The workflow would be run through your steps with webdriver
  • The HAR files are recorded
  • HAR is converted to curl
  • curl is converted to httr
  • You can then use the generated httr calls in future
@hrbrmstr
Copy link
Owner

That is a brilliant idea! I had been thinking abt adding support for HAR files in general but this is a way better approach. It's definitely on the TODO list now!

@johndharrison
Copy link
Contributor Author

I had a look at phantomjs and the HAR logs it exports. Unfortunately there is an issue with the cookies (they are absent in the HAR logs) so the utility of the logs are reduced. https://github.com/detro/ghostdriver/issues/366

I added the option to import a HAR log via file/url/string. It might be useful to allow filtering of the entries based on response content-type? Perhaps a grouping based on mime type/ internet media type http://www.freeformatter.com/mime-types-list.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants