fabriciocolombo / delphi-rest-client-api

A Delphi REST client API to consume REST services written in any programming language.
Apache License 2.0
380 stars 182 forks source link

Support for Proxy #30

Closed RobertoSchneiders closed 9 years ago

RobertoSchneiders commented 9 years ago

Not working through proxy (even without authentication).

WinHTTP has a method to set the proxy and also has Indy.

The ideal would be to read the information from the operating system and configure it automatically. The information can be read from windows registry or directly by api (SO).

RobertoSchneiders commented 9 years ago

I made a change to support proxy with WinHTTP in our Fork. https://github.com/cadena-monde/delphi-rest-client-api/pull/4/files Pretty simple. In the Indy case, it will be a bit more complicated.

Of Course, probably we have to use a different approach in this repository, to support all of the connection types. Maybe, expose the proxy settings in TRestClient class.