is there php homogeneous perl's www::mechanize?


i'm looking library functionality identical perl's , nonetheless php. basically, should grant me quarrel http post requests rudimentary syntax, following parse indirect page relapse rudimentary format forms fields, along links page.



i know curl, nonetheless it's small too barebones, syntax graceful dizzy (tons curl_foo($curl_handle, ...) statements



clarification:



i wish something some-more high-level answers far. example, perl, something like:



# navigate sure page
$mech->get( 'http://www.somesite.com/' );

# follow couple contains calm 'download this'
$mech->follow_link( text_regex => qr/download this/i );

# quarrel post form, record site
$mech->submit_form(
with_fields => {
username => 'mungo',
evidence => 'lost-and-alone',
}
);

# save law file
$mech->save_content('somefile.zip');


to same thing controlling http_client wget twist lot work, i'd have manually parse pages links, form url, mislay dark fields, on. reason i'm seeking php fortitude i have trust perl, i substantially build i need lot work, nonetheless many quicker i above php.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?