Create an Account
username: password:
 
  MemeStreams Logo

MemeStreams Discussion

search


This page contains all of the posts and discussion on MemeStreams referencing the following web page: URL.getFile() is the sux. You can find discussions on MemeStreams as you surf the web, even if you aren't a MemeStreams member, using the Threads Bookmarklet.

URL.getFile() is the sux
by Acidus at 11:30 pm EDT, May 23, 2005

] public String getFile()
]
] Gets the file name of this URL. The returned file
] portion will be the same as getPath(), plus the
] concatenation of the value of getQuery(), if any. If
] there is no query portion, this method and getPath() will
] return identical results.

... WTF kind of sense does that make!

http://www.thisisatest.com/a/long/path/filename.html?x=1&y=2

Should parse to:

Protocol: HTTP
Host: www.thisisatest.com
Path: /a/long/path/
File: filename.html
Query: ?x=1&y=2

Not:

Path: /a/long/path/filename.html
File: /a/long/path/filename.html?x=1&y=2

WTF is wrong with these people?


 
 
Powered By Industrial Memetics