abbasmajeed / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

New Feature: Choose to follow redirects or not #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This patch adds an option to follow redirects or not. This will if you actually 
want to see the contents of your redirect responses (e.g., 301 or 303) without 
rest-client redirecting the URL for you.

This change updates two files:

- OptionsEtcPanel.java: So that you can turn this behaviour on or off. By 
default, redirects will be followed (like the current behavior).
- HTTPClientRequestExecuter: Controls whether or not the redirect should be 
followed.

I'm contributing the code under Apache Software License 2.0.

Original issue reported on code.google.com by json.dow...@gmail.com on 23 Jan 2011 at 8:12

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks a lot! I will test and incorporate this today evening.

Original comment by subwiz on 24 Jan 2011 at 3:26

GoogleCodeExporter commented 9 years ago
This involves updating the bean class too. Will try to incorporate it during 
weekend.

Original comment by subwiz on 26 Jan 2011 at 3:48

GoogleCodeExporter commented 9 years ago
Bean class & Executer class updates done. Need to do:

* UI
* Persistence

Original comment by subwiz on 30 Jan 2011 at 7:07

GoogleCodeExporter commented 9 years ago
svn r493 has UI changes.

Original comment by subwiz on 30 Jan 2011 at 7:26

GoogleCodeExporter commented 9 years ago
r497 has the persistence fix. Please verify for correctness.

Original comment by subwiz on 31 Jan 2011 at 3:57

GoogleCodeExporter commented 9 years ago
I was literally JUST looking for this feature.  Thanks for the patch.

Original comment by sm...@zoosk.com on 2 Feb 2011 at 3:51