jasonrollins / shareplum

Pythonic SharePoint
MIT License
179 stars 96 forks source link

Handling proxies in http requests #134

Open meglyne opened 3 years ago

meglyne commented 3 years ago

Hi,

I'm currently working on a project that will work behind a proxy. I was wondering if you could give the user the option to use a proxy when performing http requests such as getting a security token or getting a sharepoint list. According to the requests package documentation, proxy configuration can be performed by using the proxies parameter when making using the get() method for instance.

I was thinking for instance of maybe using a proxies parameter in the Office365 class builder, set to default as an empty dictionary.

Thanks in advance for your time. Best regards,

meglyne

jasonrollins commented 3 years ago

I couldn't help with this. I don't know much about proxies, nor do I know how to test it. The connection code isn't too bad. You should be able to modify it to fit your needs once you learn how to modify the requests arguments.