Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Add ability to allow setting proxy #110

Open
RPM1984 opened this issue Nov 3, 2021 · 0 comments
Open

Add ability to allow setting proxy #110

RPM1984 opened this issue Nov 3, 2021 · 0 comments
Labels
legacy Related to legacy, non-OpenAPI SDK

Comments

@RPM1984
Copy link

RPM1984 commented Nov 3, 2021

Hi there,

I'm trying to capture the outgoing HelloSign API calls from my .NET Core 3.1 app, but nothing is showing up in Fiddler.

This is because in order for RestSharp calls to show up in .NET Core apps, you need to explicitly set the .Proxy, like so:

var client = new RestClient("https://someapi.com");
client.Proxy = new WebProxy("127.0.0.1", 8888); // IP, Port.

Can i suggest we update the Client constructor to allow this (take in an optional WebProxy parameter)? As right now, it's basically impossible to debug this lib with Fiddler, making it difficult to understand what's going on under the hood and talking with HelloSign support.

I have already tested and confirmed this change works, by building the source from this repository and making the above change, so I'm happy to submit a PR for this, just let me know.

Thanks

@jtreminio-dropbox jtreminio-dropbox added the legacy Related to legacy, non-OpenAPI SDK label Jun 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
legacy Related to legacy, non-OpenAPI SDK
Projects
None yet
Development

No branches or pull requests

2 participants