Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Need a PERL script to connect to a https webpage and post in data stored in a .txt

by sjlo (Initiate)
on Nov 09, 2007 at 20:08 UTC ( #649988=perlquestion: print w/ replies, xml ) Need Help??
sjlo has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I use a script to generate 25 digit numbers. and I store all these generated 25 digit numbers in a .txt file, now I would like a seperate PERL script to take connect to a https webpage, fill in the field with the 25 digits and then hit "Submit" I don't have the slightest idea on where to start... I looked up articles and got an e-book regarding PERL scripts but I can't really find any snippet or reference which pertains to my issue. Any suggestions? well, i've been trying to search but I don't know how to word the search..i looked up https connections etc.. but the most I got out of it was.. use LWP::UserAgent; and $site = $ARGV[0]; # Site Target

Comment on Need a PERL script to connect to a https webpage and post in data stored in a .txt
Re: Need a PERL script to connect to a https webpage and post in data stored in a .txt
by jZed (Prior) on Nov 09, 2007 at 20:19 UTC
    The WWW::Mechanize module will do that kind of form submission.

    BTW, if the e-book you are using refers to Perl as "PERL", then you should get a different source of information because only people who aren't familiar with the Perl community write the language name in upper case.

Re: Need a PERL script to connect to a https webpage and post in data stored in a .txt
by ww (Bishop) on Nov 09, 2007 at 20:33 UTC
    • Search (in the blue bar above) and Super Search
    • Tutorials
    • Show us what you've tried
    • and make up your mind if
      Clarify whether you want 10 digit numbers or 25 digit numbers

    Welcome to PerlMonks... and, in light of your possible need for the suggestions above. read How do I post a question effectively? and Guide to the Monastery.

    update: a kindly monk pointed out that the Search/PerlMonks bar's color varies depending on the css in use. Struck "blue"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://649988]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (17)
As of 2014-07-11 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (232 votes), past polls