Jump to content

Passing Credentials in a Form and Perform Action


TripleDES

Recommended Posts

All, I want to create a script that performs the following:

 

1. Access a page and submits authentication credentials (www.example.com/login.html)

2. Once authenticated, grab values of a form (www.example.com/logs.html)

 

I just need to be stepped through the thought process.  Unfortunately, I can't use cURL because the main page doesn't request for authentication.  Instead, it's an authentication form/page.  Or perhaps I can still use cURL, but not use its auth mechanism of CURLOPT_USERPWD.

 

Here's the form parameters that must be submitted:

 

	<label>Username:</label>
<input type="text" size="14" name="username" value="User" />
<label>Password:</label>
<input type="password" size="14" name="password" value="" />
<input type="submit" value="Login" />

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.