Fix redirection problem for http client 4.x

This project received 15 bids from talented freelancers with an average bid price of $477 USD.

Get free quotes for a project like this
Project Budget
Total Bids
Project Description

We are using [url removed, login to view] 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 [url removed, login to view] which goes to [url removed, login to view]¥ôäÄÄÈÀÔÀÀÀÀÀÀ7p

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

Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online