Yes, this has been discussed here recently (check the archives). cURL will work properly as long as you do a few things: 1. send the POST variables to the login form first, 2. track cookies across multiple cURL calls.
The alternative that occurs to me is to use snmpbulkget(1) instead, after installing the SNMPd package for pfSense. -Adam Thompson [email protected] [Yes, I know I top-posted. Trying to figure out how to turn that off in Outlook right now...] -----Original Message----- From: John Busch [mailto:[email protected]] Sent: Friday, April 15, 2011 10:13 To: [email protected] Subject: [pfSense Support] Is anyone scraping pfsense pages in 2.0? List, I upgraded from 1.2.3. to 2.0 yesterday on my home pfsense gateway. Under 1.2.3, I used a homebrew cURL PHP script on a linux host to scrape diag_arp.php for pfsense's ARP table in order to help me determine active hosts on my network. 2.0's user authentication is different than 1.2.3. My method of using CURLOPT_HTTPAUTH to authenticate with pfsense no longer works, since 2.0 uses a web form method of authentication. I am looking at using cURL POST methods to authenticate with the web form. However, before I spend the time working this method, it looks like after authentication my cURL script will get redirected to index.php (the dashboard) instead of diag_arp.php. Has anyone ran into this problem or am I incorrect in my assumption? Do you have any suggestions/methods I could use to automate access to pfsense 2.0's ARP table? Thanks much, have a good one, John --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] Commercial support available - https://portal.pfsense.org --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] Commercial support available - https://portal.pfsense.org
