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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:25:46+00:00 2026-05-27T11:25:46+00:00

The website https://www.openbux.com/ expire cookies after just one one day or one session. Is

  • 0

The website https://www.openbux.com/ expire cookies after just one one day or one session.

Is there any way to use cURL with PHP to get a login and to change the cookies expire date, for example, for one year?

And I have problem to use the cURL with CAPTCHA. Is there any solution for that?

I know I should use something like that

<?
    $cookie_file_path = "C:\path\to\save\cookie.txt";

    $agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/6";
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,"http://www.example.com/target.php");
    curl_setopt($ch, CURLOPT_USERAGENT, $agent);
    curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);
    curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);
    curl_setopt($ch, CURLOPT_REFERER, "http://www.google.com");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    //Do not print anything now.
    //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    curl_setopt($ch, CURLOPT_POSTFIELDS, "login_username=XXXXX&passWord=YYYYY");

    $html = curl_exec($ch);
    var_dump(urlencode($html));

    curl_close();
?>

but I can’t use this with CAPTCHA… And I don’t have the target URL to send the date
because the login form which I got it from here https://www.openbux.com/login
like this

<form action="" method="post">
    <input type="hidden" name="token" value="23cc81bca35588e5356bf07a1bb4e04538304e41" />
    <fieldset><h1>Please log in<a href="javascript:void(0);" onclick="showK();" title="Show keyboard"><img src="images/keyboard.png" style="float: right; margin-right: 12px; margin-top: 4px;" alt="Show keyboard" border="0"></a></h1>
    <div class="formular">
        <span class="formular_top"></span>
        <div class="formular_inner"> <span><a href="reset" class="lost">Lost Password?</a></span>
            <label> <strong>Username:</strong><span class="input_wrapper"> <input name="login_username" id="login_username" type="text" onfocus="text=this" value="" /> </span> </label>
            <label> <strong>Password:</strong> <span class="input_wrapper"> <input name="login_password" id="pwd" onfocus="text=this" type="password" /> </span> </label>
            <label> <strong>Verification Code:</strong> <span class="input_wrapper" style="width: 49px; float: right; margin-left: 8px; background: url(images/login/input_small.gif) no-repeat;"> <input name="code" type="text" maxlength="4" onfocus="text=this" style="text-transform: uppercase;" /> </span>
            <img src="captcha.jpg" height="22" alt="captcha" style="float: right;" /> </label>
            <input type="hidden" name="7" value="Israel" />
            <ul class="form_menu"><li><span class="button"><span><span><em>SUBMIT</em></span></span>
            <input type="submit" name="Login2" value="Login" />

so I don’t have in the action="" in any URL. Is it possible any PHP cURL script that allow me to login automatic with my long date cookie file?

  • 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-27T11:25:46+00:00Added an answer on May 27, 2026 at 11:25 am

    You can manually edit the cookiejar file after it’s created. You could also login with a browser like Firefox and then copy the cookie data from the browser cookies window to the cookiejar file. You will have to convert it to the correct format though.

    Regarding the captcha, send a request for captcha.jpg and then write it to file or output it to a browser, solve it and then add the answer to CURLOPT_POSTFIELDS.

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

Sidebar

Related Questions

Here's a possible scenario. Let's say I have a website https://www.mywebsite.com and there is
I am trying to login to this website https://www.virginmobile.com.au programatically (on the right there
I'm implementing captcha on my website like the one in https://web.archive.org/web/20210304122904/https://www.4guysfromrolla.com/articles/060706-1.aspx . It is
Im trying to request https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url=[http://www.my-website.dk/]&key=[my-key] using urlfetch from app engine but it's not working.
I run a social networking / blogging website ( http://www.obsidianportal.com ), and currently the
Example website is http://www.wikihow.com/Main-Page , check the Recent Changes heading on the right side.
I have a Joomla Website located at http://www.MikeSilvis.com , and upon going to the
I'm using http://urlrewriter.net/ to rewrite urls at my website. For example, I'm rewriting: http://www.example.com/schedule.aspx?state=ca
I am currently doing IE-hacks on a website I'm working on: http://www.timkjaerlange.com/wip/co2penhagen/ I got
I recently deployed a site http://boardlite.com . One of the tester websites http://www.gidnetwork.com/tools/gzip-test.php suggests

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.