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

Proxy question #11

Open
goldenking0412 opened this issue Nov 27, 2020 · 1 comment
Open

Proxy question #11

goldenking0412 opened this issue Nov 27, 2020 · 1 comment

Comments

@goldenking0412
Copy link

goldenking0412 commented Nov 27, 2020

options = { http_proxyaddr: @proxy_addr, http_proxyport: @proxy_port, http_proxyuser: @proxy_user, http_proxypass: @proxy_pass }
get_response = HTTParty.get(url, options)

The proxy returns random ip whenever call.
But if I use this proxy in browser, it keeps same ip for 15 mins.
So I want to simulate that.
How can I keep connection open and send 2nd request with 1st request ip?
this gem will work for this?
Thanks

@goldenking0412
Copy link
Author

If so, then how to use proxy in persistent httparty?

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

No branches or pull requests

1 participant