[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Santosh G N updated HTTPCLIENT-1559:
------------------------------------
    Description: 
Objective
I need to convert relative path to absolute path for the downloaded page 
content I'm using httpclient.
say when I get page content the location of JavaScript and images are relative 
to server
like /imagesfoldername/imagename
I need to convert to 
www.domainname.com/imagesfoldername/imagename
I have written a custom code inorder to convert relative to absolute path. but 
I feel that is not optimal solution.
So I'm in search of some inbuilt option of httpclient.., I came across URIUtils 
which helps in converting. but in net I couldnt get more working code or example
it will be great if you can provide me direction how to convert relative to 
absolute path.

  was:I want to convert relative address to absolute address using HttpClient 
present in the content of  web page.I am looking for examples ..


> Converting a relative address to absolute address using HttpClient in Java
> --------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1559
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1559
>             Project: HttpComponents HttpClient
>          Issue Type: Wish
>          Components: Examples
>         Environment: Java,windows 7
>            Reporter: Santosh G N
>
> Objective
> I need to convert relative path to absolute path for the downloaded page 
> content I'm using httpclient.
> say when I get page content the location of JavaScript and images are 
> relative to server
> like /imagesfoldername/imagename
> I need to convert to 
> www.domainname.com/imagesfoldername/imagename
> I have written a custom code inorder to convert relative to absolute path. 
> but I feel that is not optimal solution.
> So I'm in search of some inbuilt option of httpclient.., I came across 
> URIUtils which helps in converting. but in net I couldnt get more working 
> code or example
> it will be great if you can provide me direction how to convert relative to 
> absolute path.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to