Fix redirection problem for http client 4.x

CLOSED
Bids
15
Avg Bid (USD)
$477
Project Budget (USD)
$250 - $750

Project Description:
We are using http://hc.apache.org/httpcomponents-client-ga/ to read redirects and store for later use. I attached a small java example that shows how we input an uri and then find the final redirect address by detecting 301 or 302 responses and reading the location header.

We have a problem for some sites, where we cannot decode the location header correctly. Headers are supposed to be ascii only but for some servers it is not the case.

In the attached code there are an example where location ends up with a garbage response due to decoding issues.

For example, following the redirect http://www.pricerunner.dk/track/scripts/redir.php?bt=b2ZmZXI%253D&ch=6&oi=2795486002570200&mc=12&dp=3&sb=strategicallywithship&cy=DNK&ca=2&cn=TV&pi=2795486&mi=25702&su=Mjc5NTQ4Ni02NTY4MjgoV3VwdGkp&dg=cHJvZHVjdF9wcmljZQ%253D%253D&cl=p_name&du=aHR0cDovL3d3dy53dXB0aS5jb20vUHJvZHVrdGVyL1RWLUhJRkkvVFYvNjU2ODI4L1NhbXN1bmctVUU0NkVTODAwNS1tVEFCLmh0bWw%252FY2lkPTkxMTIwNTAwMDAwMA%253D%253D which goes to http://www.wupti.com/Produkter/TV-HIFI/TV/656828/Samsung-UE46ES8005-mTAB.html6¥ôäÄÄÈÀÔÀÀÀÀÀÀ7p

So basically the task is to solve this problem, either by implementing a RedirectStrategy for the htpclient or another suitable approach

Skills required:
Java
Additional Files: redirect-example.zip
Hire renderloop
Project posted by:
renderloop Denmark
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 525
in 5 days
$ 463
in 3 days
Hire poornachand
$ 302
in 5 days
$ 262
in 3 days
$ 787
in 5 days
$ 330
in 1 days
$ 721
in 7 days
$ 275
in 3 days
$ 330
in 6 days
$ 330
in 4 days