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

Implement WebProxy in FlareSolverr #629

Open
Dakyne opened this issue Dec 20, 2022 · 0 comments
Open

Implement WebProxy in FlareSolverr #629

Dakyne opened this issue Dec 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Dakyne
Copy link

Dakyne commented Dec 20, 2022

Please use the search bar at the top of the page and make sure you are not creating an already submitted issue.
Check closed issues as well, because your issue may have already been fixed.

Environment

  • FlareSolverr version: Latest non beta (2.2.10)
  • Last working FlareSolverr version: 2.2.10
  • Operating system: Mac / Linux with browsers and curl
  • Are you using Docker: yes
  • FlareSolverr User-Agent (see log traces or / endpoint): Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0
  • Are you using a proxy or VPN? yes my own wireguard server to reach another LAN where flaresolverr is.
  • Are you using Captcha Solver: yes
  • If using captcha solver, which one: Harvester
  • URL to test this issue: y

Description

I'm trying to add a RSS feed to sonarr/radarr and need to have only an URL. I know it should not be possible to do so, but in this case it would not be an issue. I'd be perfectly fine with a workaround by the way.

I'm trying to convert the following post request into the following get request:

curl -L -X POST 'http://192.168.1.54:8191/v1' \
-H 'Content-Type: application/json' \
--data-raw '{
  "cmd": "request.get",
  "url": "https://www6.yggtorrent.lol/rss?action=generate&type=cat&id=2145&passkey=123soleil",
  "maxTimeout": 30000
}'
curl -L -X POST http://192.168.1.54:8191/v1?cmd=request.get&url=https%3A%2F%2Fwww6.yggtorrent.lol%2Frss%3Faction%3Dgenerate%26type%3Dcat%26id%3D2145%26passkey%3D123soleil&maxTimeout=30000

Logged Error Messages

The post request work, the get request doesn't

 * Connected to 192.168.1.54 (192.168.1.54) port 8191 (#0)
> POST /v1?cmd=request.get HTTP/1.1
> Host: 192.168.1.54:8191
> User-Agent: curl/7.85.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< X-Powered-By: Express
< Content-Type: application/json; charset=utf-8
< Content-Length: 155
< ETag: W/"9b-xoBJRA054PsgNVEHLE7MbWN/R0s"
< Date: Tue, 20 Dec 2022 18:33:35 GMT
< Connection: keep-alive
< Keep-Alive: timeout=5
<
* Connection #0 to host 192.168.1.54 left intact
{"status":"error","message":"Error: Request parameter 'cmd' is mandatory.","startTimestamp":1671561215597,"endTimestamp":1671561215597,"version":"v2.2.10"}
@ngosang ngosang changed the title Sending a request to Flaresolverr api using only a GET request with options in parameters instead of post body. Implement WebProxy in FlareSolverr Jan 6, 2023
@ngosang ngosang added the enhancement New feature or request label Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants