Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: LWP Authorisation issue (not really)

by kapila (Acolyte)
on Feb 25, 2013 at 12:18 UTC ( #1020505=note: print w/replies, xml ) Need Help??


in reply to Re: LWP Authorisation issue (not really)
in thread LWP Authorisation issue

Thanks i will try to read this never heard of it.

Plus,Do u seek any issue in my code?
  • Comment on Re^2: LWP Authorisation issue (not really)

Replies are listed 'Best First'.
Re^3: LWP Authorisation issue (not really)
by Anonymous Monk on Feb 25, 2013 at 12:39 UTC

    Plus,Do u seek any issue in my code?

    I see some issues, but I don't know if fixing them will help you

    I see you didn't use strict/warnings to cut your development time in half!

    I see you don't dump in handler but do something else

    I see you check the value of show_progres instead of turning it on

    You use the bareword TIMEOUT for timeout

    I see add your own Basic header and use/credentials -- I don't know what that will do, but that is kind of the purpose behind LWP, to do that for you

    Also, WWW::Mechanize can simplify your LWP::UserAgent interaction, no need for constant status_line checks as it will die for you,
    or saving the response, it keeps track of all that ( WWW::Mechanize::Cookbook, mech-dump )

    WWW::Scripter is a Mechanize helper

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020505]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2018-07-23 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (459 votes). Check out past polls.

    Notices?