Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6606843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:26:20+00:00 2026-05-25T19:26:20+00:00

For some time I have been trying to solve fairly common problem consisting of

  • 0

For some time I have been trying to solve fairly common problem consisting of basically three steps:

  1. fetch html page with specified URL and store its content in a String
  2. detect content encoding either from html meta information or HTTP header
  3. recode the content into UTF-8 for further processing

In the real usage I have the first step a little extended with functionalities like having a “user-agent” instance with cookie-jar, configurable timeout and amount of GET attempts, configurable request count per time frame limitation, etc…

I implemented rest-client wrapper but I run into several problems:

  • class-global RestClient.proxy settings conflicting with e.g. couchrest (using rest-client itself)
  • freezing: sometimes the timeout causes freezing of the process. AFAIK more of my friends run into the same problem with rest-client
  • redirect Location URI parsing: rest-client fails to fetch “http://www.ofertacarioca.com.br/index.aspx?cidade=4,Belo%20Horizonte” correctly complaining about invalid URI ‘/indexnew.aspx?cidade=4,Belo Horizonte’ in Location header of the 302 result but curb handles this perfectly through to the target page. I’m about to reimplement the wrapper with the use of curb
  • recoding problems in the third step: I attempted to detect encoding from html page meta information and HTTP header (in this order) for some pages still to no avail

I would love to know of some cool gem out there that would handle such needs or of some intriguing universal solution hints if any.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:26:21+00:00Added an answer on May 25, 2026 at 7:26 pm

    As nobody has answered, I needed to implement the curb-based solution:
    curburger

    Perhaps somebody finds it useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying this for some time but could not figure out yet.
I have been trying to compile netcat.c on AIX for some time (using the
I've been trying to solve this problem all day, and I've read some conflicting
I have been working with Struts for some time, but for a project I
I have been using Perl for some time, but today I came across this
I have been learning python for some time now. While starting this learning python
I have been using the partial class modifier for some time in order to
At school we have been programming in MIPS assembly language for some time. I'm
I have been running Visual Studio 2008 Team Edition for some time now and
I have been interested in learning Rails for some time now and feel now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.