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 744025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:55:50+00:00 2026-05-14T08:55:50+00:00

The site I was screen scraping (Which I have creds for) recently changed their

  • 0

The site I was screen scraping (Which I have creds for) recently changed their server and blocked port 80. I thought I could just use port 443 for https but I get an timeout error now. I’m just creating a new WWW::Mechanize object and using the get() to scrape the site.

My question is, do I need to add the cookie now that they use https?

Is this the correct way to add the cookie jar?

my $agent = WWW::Mechanize->new();

$agent->agent('Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100407 Ubuntu/9.10 (karmic) Firefox/3.6.3');

# we need cookies
$agent->cookie_jar(HTTP::Cookies->new);

This is the error:

Trying to log in… 2010-04-22
14:00:08 Error POSTing
https://theURL/j_security_check:
The time allowed for the login process
has been exceeded. If you wish to
continue you must either click back
twice and re-click the link you
requested or close and re-open your
browser at lib/mypackage.pm line 40

Is this even a cookie issue?

Is there a way to increase the login time, even if I log into the site through a browser it feels like it takes a good 60 to 90 seconds before I log in.

  • 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-14T08:55:50+00:00Added an answer on May 14, 2026 at 8:55 am

    WWW::Mechanize is built on top of LWP::UserAgent, so you can use the LWP::UserAgent methods. The default timeout is 180 seconds, which is already extremely long, but you can change it to be any value that you like by using the timeout method:

     $mech->timeout( $really_long_value );
    

    This timeout is not the total request time, but the idle time on the socket that the user-agent will tolerate. If it receives no interaction within that time, the request should fail.

    However, it sounds like the server probably has a problem since it takes so long even when you do it manually. You might mention this to whoever runs that site. That error message is very suspicious. Without more details about the server, etc, it’s very difficult to tell you what’s going on.

    As for the cookie issue, just watch the HTTP conversation when you try it manually. Do whatever your interactive browser does. If it sends cookies, do that. If it uses a different form of authentication, do that, and so on. They might have changed more than the scheme when they turned off port 80.

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

Sidebar

Related Questions

So, I'm trying to do some screen scraping off of a certain site using
What solutions exist for screen scraping a site over SSL for use with .NET?
I have been thinking quite a bit here lately about screen scraping and what
We have a reporting web site and in the search screen most of the
I have a php site, which is basically like a site directory, what I
I have a site that I screen-scrape off GoogleMaps to get the driving distance
We have a series of products with built in web servers each of which
A Drupal site a friend has on my server (WHM/CPanel) show his menu navigation
I'm trying to create a simple full screen site where the side bar is
I want to screen-scrape a web-site that uses JavaScript. There is mechanize , the

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.