Colly: use RoundRobinProxySwitcher But Sometimes the colly.Request.ProxyURL is empty.

Created on 14 Aug 2019  路  5Comments  路  Source: gocolly/colly

use RoundRobinProxySwitcher But Sometimes the colly.Request.ProxyURL is empty.

NOTE: not use CacheDir
Sometimes the requested proxy is empty, not every request.

I don't think it's a problem with RoundRobinProxySwitcher.

Most helpful comment

same problem.
And does *http.Request really has the Context() method? source code
I could just find Ctx on req

Really appreciate for the solution @zplzpl

All 5 comments

339 DisableKeepAlives: true , I still have problems

I found the exact reason

what's the reason? r.ProxyURL is always empty

same problem.
And does *http.Request really has the Context() method? source code
I could just find Ctx on req

Really appreciate for the solution @zplzpl

Still having issues with this. Ctx on request is always empty

Was this page helpful?
0 / 5 - 0 ratings

Related issues

prologic picture prologic  路  6Comments

K4N0 picture K4N0  路  6Comments

mazhigali picture mazhigali  路  5Comments

dzakaammar picture dzakaammar  路  3Comments

yanshiyason picture yanshiyason  路  7Comments