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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:45:45+00:00 2026-05-23T19:45:45+00:00

I want to automatically login on a website (POST with cookie) then fill a

  • 0

I want to automatically login on a website (POST with cookie) then fill a couple of forms.

1/I tried to do it using curl, but I am not sure that is possible. At least I have not managed to do it using the

curl --cookie mycookie.txt --data "login=mylogin&password=mypassword&Button=Login" [the url of the website]

”Edit”
here is the result of the curl command (including the header –include):

Content-Type: text/html
Server: Microsoft-IIS/6.0
X-Powered-By: PHP/5.2.6
Set-Cookie: PHPSESSID=b865a8e357d4f945e576aebe4f288320; path=/
Set-Cookie: cookiename=deleted; expires=Wed, 14-Jul-2010 06:43:26 GMT
X-Powered-By: PleskWin
X-Powered-By: ASP.NET
Date: Thu, 14 Jul 2011 06:43:26 GMT
Connection: close

<html>
<head>
<title>:: Welcome ::</title>
<link rel="stylesheet" type="text/css" href="Styles/textset.css">
<script language="JavaScript" type="text/javascript">
//Begin CCS script

//Include Common JSFunctions @1-252A7665
</script>
<script language="JavaScript" src="ClientI18N.php?file=Functions.js&locale=en"     type="text/javascript" charset="utf-8"></script>
<script language="JavaScript" src="HeaderFunctions.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
//End Include Common JSFunctions

//_OnLoad @1-9C4F01C0
function _OnLoad()
{
    var result = true;
//End _OnLoad

//Set Focus @23-D20FE9BF
    if (document.forms["Login"] && document.forms["Login"].login)         document.forms["Login"].login.focus();
//End Set Focus

//Close _OnLoad @1-BC33A33A
    return result;
}
//End Close _OnLoad

//bind_events @1-C1F288D9
function bind_events() {
    if (functionExists("header_bind_events")) header_bind_events();
    if (functionExists("footer_bind_events")) footer_bind_events();
    addEventHandler("", "load", _OnLoad);
}
//End bind_events

window.onload = bind_events; //Assign bind_events @1-19F7B649

//End CCS script
</script>
<link rel="stylesheet" type="text/css" href="Styles/sitename/Style.css">
</head>
...

Does anyone knows what is this CSS script that executes on load? Could it be the reason why I can’t login with curl?

How can I know if it is because I am doing something wrong, or because this method cannot work (as I have read on a few posts on SO.)?

2/Another idea would be to use a tool that manipulates chrome (or any browser) to make it press the different buttons. Does this kind of software exists?

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-23T19:45:46+00:00Added an answer on May 23, 2026 at 7:45 pm

    Looks like a job for PhantomJS. As PhantomJS is built on WebKit, just like Chrome, its behavior should not be that far from Chrome’s.

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

Sidebar

Related Questions

I want to create a Login through Facebook on a website using Graph API
I want to store data in a cookie and I am not exactly sure
I want to login my gmail and get the contact list automatically with httpClient,
I want to open some website in my iphone app using UIWebView. The website
I am trying to automate paying bills so I want to automatically login to
I have a classifieds website, where anyone (no need for login currently) can post
I want to automatically commit the database when we copy files from one branch
I have a CheckedListBox, and I want to automatically tick one of the items
I get poorly formatted invoice-related email from my payment gateway. I want to automatically
I want Eclipse to automatically generate Javadoc comments for my getter and setter methods

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.