Closed GoogleCodeExporter closed 8 years ago
Proxy configurations are written by GUI tool in this location:
~/.rest-client/rest-client.properties
So your options are:
1. Open GUI tool and then disable proxy
2. Edit proxy.options.is_enabled=false in the file
3. Delete rest-client.properties to regenerate the properties afresh
Original comment by subwiz
on 14 Dec 2013 at 2:53
Hi subwiz,
thanks for the quick response. Actually I am using RESTClient 3.2.2 CLI in one
of my automation project. At this time, I have to do everything using CLI
version (with Java programing) ONLY. Also, this file is only created after the
execution, so for the first time (in a fresh machine) my test cases may fail.
Below I have two short questions-
(1) How to disable the proxy using CLI version?
(2) How to configure HTTP Request Timeout using CLI version?
Thank you for the support.
--
Regards
Ravi
Original comment by ravi2008...@gmail.com
on 14 Dec 2013 at 5:36
The configuration is shared between the CLI and GUI versions.
Original comment by subwiz
on 14 Dec 2013 at 5:38
Hi subwiz,
Finally I figured out the exact problem. The CLI version is creating
rest-client.properties with request-timeout-in-millis=60000 ONLY. If the user
hasn't used GUI version, before executing CLI version, it is showing the above
exception. After checking with the source code, I realized that as per the
exception, it is trying to get the integer value of proxy.options.port
parameter, which is NOT present in the properties file.
Since I never used GUI before this, I noticed that proxy.options.is_enabled
parameter was not present in rest-client.properties file.
--
Regards
Ravi
Original comment by ravi2008...@gmail.com
on 14 Dec 2013 at 8:29
Original issue reported on code.google.com by
ravi2008...@gmail.com
on 14 Dec 2013 at 11:49