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

  • Home
  • SEARCH
  • 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 6183407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:21:36+00:00 2026-05-24T01:21:36+00:00

I’ve just upgraded and have a problem. Previously this code was working fine: page

  • 0

I’ve just upgraded and have a problem. Previously this code was working fine:

page = ag.get(login_url)
form = page.forms.first
form.field_with(‘user[login]‘).value = login
form.field_with(‘user[password]‘).value = password

page = ag.submit(form)

It submits the login data to the Devise. In the log on server I see that user, auth token and password were submitted well. But I’m not getting logged in.

I also checked the mechanize logs and found a difference. For some unknown for me reason in new mechanize I don’t see this line:

DEBUG — : request-header: cookie => _vba.va.cc_session=…

This one is in both logs (2.0 and older one):

DEBUG — : response-header: set-cookie => _vba.va.cc_session=

Do you have any any solutions other then ‘gem mechanize, ‘< 2.0.0′ ?

Thanks!

  • 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-24T01:21:36+00:00Added an answer on May 24, 2026 at 1:21 am

    Ok, this is the bug. Mechanize resets cookies if you connect to the address without dots.
    For me that was http://rep:3000/ (I have a domain string in my resolv.conf). Also it looks like it will not work with IPv6 addresses.

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

Sidebar

Related Questions

I have just upgraded the application from Rails 2 to Rails 3 (ruby 1.9.2-head).
I have just upgraded my Magento shopping cart to 1.4.2. Since the upgrade when
I have several projects that I just upgraded from Visual Studio 2003 and ASP.NET
I've just upgraded to jQ 1.5 and jQUI 1.8.9 and my sortables have started
I have a project using DevExpress 8.3 (2008.3) which I just recently upgraded to
I just upgraded to Spring 3, and attempted to run some JUnits to make
I've just upgraded to VS2010 as I was running into problems with a Silverlight
We've got a Rails application just upgraded to Rails3 using Devise's Rails3 gem for
Context I have written a TreeList/TreeGrid (i.e. tree with columns) control that inherits the
The tutoriel in question is http://developer.android.com/resources/tutorials/views/hello-gridview.html The Tutorial asks that you 1- Create a

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.