dillibabu7a
dillibabu7a

Reputation: 1

How to give username and password to a mail through C program?

#include <unistd.h>
int main()
{
 char *arg[3];
 arg[0] = "firefox";
 arg[1] = "http://www.gmail.com"; 
 arg[2] = '\0';
 execvp(arg[0],arg);
}

Through this program I opened gmail home page in a web browser. Instead of giving username and password in the web browser, I want to give through C program. How can I do this?

Upvotes: 0

Views: 442

Answers (3)

Per Johansson
Per Johansson

Reputation: 6887

It's not C, but you can probably do this using a test framework such as Selenium.

Upvotes: 0

karrick
karrick

Reputation: 382

Please clarify:

Are you trying to automate the opening of Firefox to your Gmail account, or write a program to log into your Gmail account and automatically download information?

Upvotes: 0

ObscureRobot
ObscureRobot

Reputation: 7336

Take a look at libcurl.

Upvotes: 1

Related Questions