I try to login on Geoserver using php. i do:
$geoserverURL = "http://localhost:8080/geoserver/j_acegi_security_check";
$post = http_build_query(array(
"username" => $username,
"password" => $password,
));
$context = stream_context_create(array("http"=>array(
"method" => "POST",
"header" => "Content-Type: application/x-www-form-urlencoded\r\n" .
"Content-Length: ". strlen($post) . "\r\n",
"content" => $post,
)));
$page = file_get_contents($geoserverURL, false, $context);
echo $page;
But not see any activity in FireBug. I'm new with php, so maybe i do something wrong here? This code snipet i was found here.