/1086729248/smgetcred.cgi?TYPE=16777244&REALM=$SM$Protect%20%2ftools%2fgbib%2flaunchService%2eshtml%20[17%3a14%3a08%3a1939]&TARGET=$SM$http%3a%2f%2fwww1%2enet%2emysite%2ecom%2fcode%2fpro%2ftools%2fgbib%2flaunchService%2ejhtml%3b$$sessionid$$UJ5SVZC3YIMPNQFIOEQCFFGAVCZB4IV0%3fLineNumber%3d0
With java.net.URI it doesn't give me any problem
any ideas??
Kedar
import org.apache.commons.httpclient.*; import org.apache.commons.logging.*; import org.apache.commons.httpclient.methods.*;
public class HTTPCtest{
public static void main(String[] argv){
try{
HttpClient client = new HttpClient();
java.net.URI u=java.net.URI.create("/1086729248/smgetcred.cgi?TYPE=16777244&REALM=$SM$Protect%20%2ftools%2fgbib%2flaunchService%2eshtml%20[17%3a14%3a08%3a1939]&TARGET=$SM$http%3a%2f%2fwww1%2enet%2emysite%2ecom%2fcode%2fpro%2ftools%2fgbib%2flaunchService%2ejhtml%3b$$sessionid$$UJ5SVZC3YIMPNQFIOEQCFFGAVCZB4IV0%3fLineNumber%3d0");
String urn=u.getRawPath()+"?"+u.getRawQuery();
System.out.println(urn);
HttpMethod method = new GetMethod("http://www.mysite.com"+urn);
client.execute(method);
String _uri=method.getURI().getPathQuery();
System.out.println("URI is "+_uri);
}catch(Exception e){
e.printStackTrace();
}
}
}
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
