Before response my question - be awared that's not related to the following subjects:
cURL: two seperate requests, same session
select outgoing ip for curl request
I'm working in a anti-captcha system and one of another validations it's the same IP can't do 5 requests per/hour, and because that I'm using TOR. But I need follow this sequence/flow:
- Access startup URL (
Example: http://server/start-session
) - get captcha and set a cookie with the verify token - Submit captcha chars (
Example: http://server/verify-captcha
), with token, session id and I must keep IP from the startup URL
Using TOR after each request I have a new IP and there is a server side validation that's sets my IP when the session was started, in another words, if my IP changes the session is considered invalid even though I send the session id and correct token with valid captcha chars.
How can I keep the my IP with TOR for 2 consecutives requests?
Depends on your TOR configuration. By default it only switches IP each 10 minutes. I suggest you refer in here for details: How to change tor exit node programmatically