Curl post method like a form do

From: Date: Tue, 03 Nov 2015 11:39:38 +0000
Subject: Curl post method like a form do
Groups: php.general 
Request: Send a blank email to php-general+get-325237@lists.php.net to get a copy of this message
Hello, I need to create a PHP code that "POST" (method) the username/password to access some URLs. The URLs are a device that is accessible by http://IP or https://IP, I dont have access to write URL's code. When I "POST" the credentials with a php form, the URL accept authentication then redirect browser to index. But, the credentials are displayed in "view source code". So, I tryed to "POST" with php curl. The authentication works fine, and result return the index page of device. But, I got stuck in my php curl. I need go to http://IP/index.php, already authenticated, like the php form do. Can anyone help me? Thanks. -- Renata Dias

« previous php.general (#325237) next »