You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2014/10/07 10:11:34 UTC

[jira] [Resolved] (HTTPCLIENT-1559) Converting a relative address to absolute address using HttpClient in Java

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

Oleg Kalnichevski resolved HTTPCLIENT-1559.
-------------------------------------------
    Resolution: Not a Problem

Santosh,
HttpClient is content agnostic and does not provide any special functionality for content processing. URIUtils is pretty much all that HttpClient has to offer.

If you have any further questions please post them to the user list, not JIRA.

Oleg 

> 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org