http_post with data in body
- Posted by jmduro Jan 13, 2017
- 1649 views
I want to drive Chrome via chromedriver (or Firefox via geckodriver, ...). Thies drivers are part of SeleniumHQ.
To do this, I need to add "Content-type: application/json" in the header, "{\"desiredCapabilities\";{})" in the body and post the request to the driver at localhost:9515. How can I do this with http_post?
I tried to do this with WinHTTP (Eu3 Standard library) but I don't know how to fill the body of the request.
Regards
Jean-Marc