Getting a severe flashback here :-), remember doing something similar using 
CURL and Perl about 11-12 years ago with the Nokia Voyager GUI under IPSO to 
drive the system configuration backup piece remotely on a schedule. Plus ca 
change etc :-)

> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Seth Mos
> Sent: Saturday, 1 October 2011 6:49 PM
> To: [email protected]; pfSense support and discussion
> Subject: Re: [pfSense] pfsense 2.0
> 
> Hi,
> 
> I'll need to get back to you on that, at work I screen scrape a pfSense 
> install
> using PHP and curl. It's a considerable amount of code.
> 
> I have a nice self written really broken parser for tables which is good 
> enough
> for most pages. I still need to rewrite the damn thing into a proper table
> parser. The one I use now just uses a offset in either the opening or closing
> table tag and counts either from the top down, or from down to top. Like I
> said, it's good enough. It returns a array with table rows and table cells.
> 
> The curl library is pretty self explanatory, I found one on the php.net page 
> for
> the curl function. I added cookie support because more and more routers
> use forms based login instead.
> 
> Regards,
> 
> Seth
> 
> Op 1 okt 2011, om 01:34 heeft - Dickie Bradford - het volgende geschreven:
> 
> > I have just upgraded to 2.0 and am looking for a way to automate adding
> users to the captive portal section.  I have seen mention in the list of using
> screen scraping to do certain things with pfsense, is this the only way to
> automate things, or is there a command line way to accomplish various tasks?
> I have never done screen scraping and have it on my  "to do" list, so does
> anyone have any sample pfsense 2.0 screen scraping scripts that they would
> mind sharing that would give me a good kick start in learning.
> >
> > Thnx
> >
> > Dickie
> >
> > --
> > The man who sais it cannot be done, should not interupt
> > the man who is trying to do it!
> >
> > _______________________________________________
> > List mailing list
> > [email protected]
> > http://lists.pfsense.org/mailman/listinfo/list
> 
> _______________________________________________
> List mailing list
> [email protected]
> http://lists.pfsense.org/mailman/listinfo/list
_______________________________________________
List mailing list
[email protected]
http://lists.pfsense.org/mailman/listinfo/list

Reply via email to