Create an Account
username: password:
 
  MemeStreams Logo

URL.getFile() is the sux

search

Acidus
Picture of Acidus
My Blog
My Profile
My Audience
My Sources
Send Me a Message

sponsored links

Acidus's topics
Arts
Business
Games
Health and Wellness
Home and Garden
Miscellaneous
Current Events
Recreation
Local Information
Science
Society
Sports
Technology

support us

Get MemeStreams Stuff!


 
URL.getFile() is the sux
Topic: Miscellaneous 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?

URL.getFile() is the sux



 
 
Powered By Industrial Memetics
RSS2.0