| Author |
Extract absolute URL from Relative
|
Mahadevan
Greenhorn
Joined: Oct 05, 2005
Posts: 6
|
|
HI,
I am using Apache HTTPClient. I need to get the absolute path from the relative image src urls.
Is there any apis in Apache HTTPs?
For ex: if you do google in IE view source logo will display the relative path. If you right click -> properities it is showing the absoulte path.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
Use the URL constructor that takes a base URL. For instance:
If you don't have the base URL then there is nothing you can do though. After all, relative to what?
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: Extract absolute URL from Relative
|
|
|