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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:30:38+00:00 2026-05-24T10:30:38+00:00

Im trying to log into Yammer using cURL. For some reason I cant get

  • 0

Im trying to log into Yammer using cURL. For some reason I cant get the site to accept the password. You can try by going to this URL https://www.yammer.com/login?login=username%40domain.com&password=password. Is there something I am doing wrong? The Username(login) shows up fine but the password wont..

EDIT:

Here is my code

<?php

$ch = curl_init();
curl_setopt($ch, CURLOPT_COOKIEJAR, "/tmp/cookie.txt");
curl_setopt($ch, CURLOPT_URL,"https://www.yammer.com/login");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "login=" . urlencode("user@domain.com") .   "&password=" . urlencode("password"));
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64)      AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30");
curl_setopt($ch, CURLOPT_VERBOSE, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);

ob_start();
curl_exec ($ch);
ob_end_clean();

curl_close ($ch);
unset($ch);

$ch = curl_init();
curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/cookie.txt");
curl_setopt($ch, CURLOPT_URL,"https://www.yammer.com/");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64)     AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30");
curl_setopt($ch, CURLOPT_VERBOSE, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, 1);

$buf2 = curl_exec ($ch);

curl_close ($ch);

echo $buf2;
?>
  • 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-24T10:30:39+00:00Added an answer on May 24, 2026 at 10:30 am

    I had a look at the source for the Yammer login page:

    <form action="/session" id="login-form" method="post">
      <fieldset>
          <input class="initial-focus" id="login" name="login" tabindex="1" type="text" />
          <input id="password" name="password" tabindex="2" type="password" />
      </fieldset>
    
    </form>
    

    As you can see, the login form has method set to “post”. The URL you’ve provided in the question will make an HTTP GET request. In order to simulate your browser when it logs in, you’ll need to tell Curl to make a POST request instead.

    See this question for a few options that should work – you may also find the man page for Curl useful.

    Edit: thanks for providing the extra info. I had another look at the page source and spotted what might be causing your problem – there’s another input in the form:

    <input name="authenticity_token" type="hidden" value="YqY07+XHzPIoY9PBLhYIQy3uQstSCJqC79Vn5Ot/njw=" />
    

    It looks like you’ll need to make another Curl request first to retrieve the value of that field, and then add it into the post fields that you are submitting.

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

Sidebar

Related Questions

Using Forms Authentication in ASP.NET MVC when trying to log back into a site,
I'm trying to write a perl script to log into a password protected site.
So I am trying to log into my site using an NSMutableURLRequest which presents
I am currently trying to log into a site using Python however the site
I am trying to log some input values into an array via jquery and
I am trying to log into a site and load a webpage programatically in
I am trying to log into a reports system using java. So far, I
I am trying to submit this webform and log into this site: https://www.kalahari.net/profile/pipeline/signin.aspx I
I'm trying to write a Java program that can automatically log into Facebook. I've
I am trying to log into my EBay account using C#. I have looked

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.