For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 1 2

How to Set Proxy in DSS REST API using CSharp?

We are using EventContext.Extract to extract data but getting random error and connection breaks with error as "An error occurred while sending the request". Could anyone please help me in setting up proxy.

dss-rest-apidatascope-selectdss
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@tirthesh.khicha, thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question. Thanks, AHS

Hi @tirthesh.khicha,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvote
Accepted
78.8k 250 52 74

You can use this code to set a proxy to ExtractionContexts.

using System.Net;
...
ExtractionsContext extractionsContext = new ExtractionsContext(dssUri, dssUserName.Value, dssPassword.Value);

WebProxy proxy = new WebProxy("http://<host>:<port>/", true);
extractionsContext.Options.Proxy = proxy;
extractionsContext.Options.UseProxy = true;
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.