Hi
When I strip down the loginpage to
<form action="login.php?" method="post">
<!-- Start standard table -->
<table>
<tr>
<td><input type="text" name="username" /></td>
</tr>
<tr>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td >
<button type="submit" name="submitted" value="OK" >OK</button>
</td>
</tr>
</table>
</form>
put this as a new html file on the server, call this file,
fill in my username, pwd, send ->
everything works fine.
I can go to the login.php and see, I'm logged in!
But when I try the same with cURL
$url = 'http://my_domain/_coppermine/login.php?referer=index.php';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, array('username' => 'user', 'password' => 'somePWD','submitted' => 'OK'));
$response = curl_exec($ch);
curl_close($ch);
It dosn't work.
If I catch the $_POST response in the login.php file both request bring the same $_POST-array
So the login should work, but it does not.
What did I miss?
Thank you