Skip to content

Setting the Proxy no longer works as documented #10

@daveloper80

Description

@daveloper80

In Advanced.MD it is suggested that you set a proxy server using:

this.httpClient.Proxy = new WebProxy(host, port);

However RestClient no longer supports this and sets the proxy via options.

I have tried to set the proxy this way but it does not seem to work

var proxy = new WebProxy()
{
    Address = new Uri(host),
    BypassProxyOnLocal = true,
};           
var options = new RestClientOptions("https://api.smartsheet.com/2.0")
{
    Proxy = proxy
};
this.httpClient = new RestClient(options);

Edit - I had a secondary issue going on but I believe this IS the correct way to set your proxy now

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions