CsQuery icon indicating copy to clipboard operation
CsQuery copied to clipboard

Please add proxy config

Open HiradNikoo opened this issue 11 years ago • 3 comments

Hi!

I love the library. The only issue is that it doesn't seem to have a proxy config to load the url from a proxy. It would really be great if you could add this config.

HiradNikoo avatar Sep 02 '14 20:09 HiradNikoo

Although it could be achieved by WebClient. But it really would be nice if it could have it built-in.

HiradNikoo avatar Sep 04 '14 05:09 HiradNikoo

I'm probably not going to do this because it's a fairly low priority and has workarounds. But I'm glad to accept pull requests if anyone else wants to make the changes.

jamietre avatar Sep 08 '14 13:09 jamietre

Could somebody please provide an example using WebClient.Proxy and CQ.CreateFromUrlAsync()?

(I'm using VB.NET) this is the way I am accessing an uri CQ.CreateFromUrlAsync(uri, AddressOf WhenFinishedAction, AddressOf WhenFailedAction, conf)

But I need a proxy.

Dim request As CsqWebRequest = New CsQuery.Web.CsqWebRequest(uri)
Dim httpRequest As IHttpWebRequest = request.GetWebRequest()

I could set a proxy to httpRequest, but don't know where to put httpRequest for doing an asynchronous request with success and error handlers.

ctindex avatar Mar 30 '15 10:03 ctindex