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
POST method with JSON data #424
Comments
No sorry. We have some limitations with Puppeteer + Firefox. If we change the technology it could be implemented. |
Can be this a potentialy solution ? driver.execute_script(""""return fetch(url, {method:"POST",
... options})"""") |
For everyone who wants to send JSON requests, I created a module for that. Please try selenium-fetch |
Are you able to create a pull request with this module? |
I also cooked something of my own to be able to send JSON requests and also passing Headers with FlareSolverr. compared to selenium-fetch, mine the request is actually sent by FlareSolverr and it's not a fetch. It uses mitmproxy so you spin up FlareSolverr as usual but also the proxy server. When doing a request with FlareSolverr you just proxy it throught the proxy server and follow a special convention for Get or Post for setting headers and send json Post data. The proxy server essentially intercepts the request and modifies the content in flight before it reaches the actual url. I haven't had time to fully test it but it seemed to work nicely with the few test I made. |
@Zelak312 It's a great idea, also the fact that since you're using mitmproxy, you can set it to use an upstream proxy as well as sending custom headers, or doing any modifications that might be needed. Great job for the idea! 👍🏻 |
Great improvement, thanks. |
I cannot believe that all the valid, legitimate uses of MITMProxy slipped my mind. Really a powerhouse of a tool. Good thinking on that. |
#998 is available? |
nice work |
Can i send a post request with json postData?
The text was updated successfully, but these errors were encountered: