Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Advanced-java] fetch url problem
- From: jyouyang@xxxxxxxxx (Jinyu Ouyang)
- Subject: [Advanced-java] fetch url problem
- Date: Fri, 22 Mar 2002 13:35:42 -0800 (PST)
java.net.URL url = new java.net.URL(buildUrl);
System.out.println("URL: "+url);
/**
system output:
URL:
http://fluke:7002/rpmclient/processRequest?Action=REDIRECT&sendRedirect=Y&a
pp=WEBRA_POST&CheckDB=N&word=Oe8l9EV0xOsbVD2tfSyzogOrwljy1nDw&PortalUserID=1025&EMail=fish@xxxxxxxx&Language=EN
**/
Properties props = new Properties();
InputStream istr = url.openStream();
System.out.println("going to do load(), input
stream: "+istr);
/**
system output:
going to do load(), input stream:
sun.net.www.http.KeepAliveStream@5e0c2b
**/
props.load(istr);
redirectUrl = props.getProperty("URL");
System.out.println("redirectUrl:
"+redirectUrl);
/**
system output:
redirectUrl: null
**/
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
- Prev by Date: [Advanced-java] improving performance of recursive algorithm
- Next by Date: [Advanced-java] Java Sound
- Previous by thread: [Advanced-java] improving performance of recursive algorithm
- Next by thread: [Advanced-java] Java Sound
- Index(es):