www:;mecahnize

i m using mechanize module to request the url from server
 $mech->get( $url );
$mech->submit_form(blah........)

how do i get the error meesge (text and code both )
LVL 1
shahrahulbAsked:
Who is Participating?
 
ozoCommented:
$mech->status()
HTTP::Status::status_message($mech->status())
0
 
shahrahulbAuthor Commented:
what about error code
0
 
Kim RyanIT ConsultantCommented:
From moduke documentation...

$mech->status()
Returns the HTTP status code of the response.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.