Lance Bader

Greenhorn
+ Follow
since Dec 12, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Lance Bader

The documentation is starting to catch up with this project.

Go to this site:

http://publib.boulder.ibm.com/wasce/V1.0.1/en/Tasks/Eclipse/index.html

Note the subtasks in the navigation pane on the left.

Truly,

Lance


Originally posted by Fran Varin:
This may seem like a crazy question but.... I've downloaded both WASCE and its companion plugin. However, there is not documentation anywhere that I can find on how to activate the plugin once you copy the contents to the plugins and features directory of Eclipse. Does anyone have this working and if so what steps did you follow to enable the plugin?

17 years ago
Your problem is caused by the automatic redirection. The HttpURLConnection, by default, is smart enough to follow the redirection but not smart enough to add the required cookies to the header.

You can use the HttpURLConnection.setInstanceFollowRedirects() method (added in Java 1.3) to stop your connection from following redirections automatically. Then you must use the HttpURLConnection.getResponseCoe() method and check for redirections, extracting the new URL and adding the cookies as necessary.

Alternatively, you can use the HttpClient package from Jakarta (http://jakarta.apache.org/commons/httpclient/) which will perform the cookie management automatically.