TripleDES Posted October 11, 2007 Share Posted October 11, 2007 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" /> Link to comment https://forums.phpfreaks.com/topic/72800-passing-credentials-in-a-form-and-perform-action/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.