Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://649988]
Approved by ww
[Corion]: marto: Yeah, and I doubt that they'll ever get back to something like Violator/Songs of Faith and Devotion - it would either alienate their "regular" crowd, or be "too much Violator" ;)
LanX needs to see Freddy Mercury'
[Corion]: marto: Yeah, I have that on DVD even, and I missed them last year because I was in London at the time ironically ;)
[marto]: put me in the mood to listen to this now :)
[Corion]: LanX: Well, grab a shovel :)
[Corion]: Kraftwerk also are still touring (well, only Ralf Hütter and Florian Schneider), but I'm too tight fisted to spend EUR 150+ for standing around two hours ;)
[Corion]: Oh. Queen have a new front man. Not really sure...
[marto]: Florian retired some years ago. I have been gifted a ticket to their show in Glasgow as my friends husband can no longer make it
[Corion]: marto: Ah, so it's only one original remaining, and his clones ;)
[Corion]: marto: Yay, you're lucky ;)

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2017-03-24 11:49 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.