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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:30:04+00:00 2026-06-13T08:30:04+00:00

My bash script is doing the following: curl -k -s -c gv.cookies https://accounts.google.com/ServiceLogin -F

  • 0

My bash script is doing the following:

curl -k -s -c gv.cookies https://accounts.google.com/ServiceLogin -F Email=something@gmail.com -F Passwd=somepassword -F service=grandcentral

This seems to work. The cookies file is created, and if I peruse the output, it certainly thinks that I’ve logged in.

However, when I next do this:

curl -k -s -b gv.cookies https://www.google.com/voice/

I get a “moved temporarily” page, and not the Google Voice markup that I expect.

Am I missing some parameter to curl that makes it use the cookies correctly? I don’t need it fixed so much as I need someone to point me in the right direction.

  • 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-06-13T08:30:05+00:00Added an answer on June 13, 2026 at 8:30 am

    You should add the -b & -L flags :

    curl \
        -L \
        -k \
        -s \
        -c gv.cookies \
        -b gv.cookies \
        -F Email=something@gmail.com \
        -F Passwd=somepassword \
        -F service=grandcentral \
        https://accounts.google.com/ServiceLogin
    

    -L, –location

    (HTTP/HTTPS) If the server reports that the requested page has moved to a different location (indicated with a
    Location: header and a 3XX response code), this option will make curl
    redo the request on the new place.

    And

    -b, –cookie

    (HTTP) Pass the data to the HTTP server as a cookie. It is supposedly the data previously received from the server in a “Set-Cookie:” line. The data should be in the format
    “NAME1=VALUE1; NAME2=VALUE2”.

    If it’s not sufficient, try to change the user-agent for the firefox one by example.

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

Sidebar

Related Questions

I am doing some json parsing in a bash script: curl http://myurl.com/get.json | sed
My bash-script looks as following: echo "Description:" while [ $finishInput -eq 0 ]; do
In Bash script, what is the difference between the following snippets? 1) Using single
I am running following test bash script: test.sh ======== pass=$1 if [ $pass -eq
I'm doing a script and I would like to add the following line pre-up
I have a script task.sh with the following content: #!/bin/bash CUR_DIR=`pwd` SCRIPTPATH=${CUR_DIR}/`dirname $0` when
I have the following script: #!/bin/bash STUB=`pwd | awk -F '/' '{print / $2
I've written a bash script that is doing exactly what I want it to
In answering another question I created the following script bash script: #!/bin/bash files1=( file1.txt
I'm trying to write a simple bash script but something seems wrong, I'm testing

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.