Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Creating and submitting POST form in Perl

Reply
Thread Tools

Creating and submitting POST form in Perl

 
 
J.P.
Guest
Posts: n/a
 
      11-11-2003
To anyone who might be able to help here,

I am not necessarily new to Perl, but I have a question regarding
creating and submitting a POST form in Perl. I know how to use the
CGI.pm module to create dynamic pages, but I don't necessarily want to
display a page here.

I am creating a process where my script automagically runs, creates a
POST request (automagically filling in all the required data) and
submits itself to a particular web page for processing. I intend to
capture the response from the web page and parse out all data that I
need.

I've been seeking a way to create a POST form in Perl and handling the
auto-submission. But, how can I do this? I don't need to display my
form that Perl will create....I just need to create the request and
fire it off.

If ANYONE out there can help me, I would greatly appreciate it. I've
been going in circles now for 3 days, trying to scour the web and
books for answers. Nothing...

Thank you VERY much in advance for any help!

J.P. Zurilgen
Sr. Solutions Developer, SAIC
 
Reply With Quote
 
 
 
 
J. Gleixner
Guest
Posts: n/a
 
      11-11-2003
J.P. wrote:


> I've been seeking a way to create a POST form in Perl and handling the
> auto-submission. But, how can I do this? I don't need to display my
> form that Perl will create....I just need to create the request and
> fire it off.


LWP will help you out.

perldoc lwpcook

 
Reply With Quote
 
 
 
 
Ben Morrow
Guest
Posts: n/a
 
      11-11-2003

"J. Gleixner" <> wrote:
> J.P. wrote:
>
>
> > I've been seeking a way to create a POST form in Perl and handling the
> > auto-submission. But, how can I do this? I don't need to display my
> > form that Perl will create....I just need to create the request and
> > fire it off.

>
> LWP will help you out.
>
> perldoc lwpcook


Or perhaps WWW::Automate.

Ben

--
Every twenty-four hours about 34k children die from the effects of poverty.
Meanwhile, the latest estimate is that 2800 people died on 9/11, so it's like
that image, that ghastly, grey-billowing, double-barrelled fall, repeated
twelve times every day. Full of children. [Iain Banks]
 
Reply With Quote
 
Tad McClellan
Guest
Posts: n/a
 
      11-12-2003
J.P. <> wrote:

> To anyone who might be able to help here,



Here is some help:

Check the Perl FAQ *before* posting to the Perl newsgroup.


> I've been seeking a way to create a POST form in Perl and handling the
> auto-submission. But, how can I do this?



perldoc -q form

How do I automate an HTML form submission?


> I've
> been going in circles now for 3 days, trying to scour the web and
> books for answers.



You will be disappointed to discover that the answer was already
on your very own hard disk then...


> Thank you VERY much in advance for any help!



Follow netiquette and prosper.

Ignore netiquette and waste 3 days plus the time of thousands of
other people around the world.


--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
J.P.
Guest
Posts: n/a
 
      11-12-2003
Mr. McClellan,

Maybe you should attempt to be a bit less high and mighty...and
actually help eliminate problems rather than adding to them.

As I said, I scoured the area (TO INCLUDE my hard drive)...and I have
NOT found an answer yet. Although I can do the auto-submission, I
still haven't created the request. I don't want to display a
page...just create a request with all my info and POST it forward.

I think that the Perl world could use a lot fewer "self-righteous"
people...and a few more truly helpful individuals.

Just remember: when you were born, you didn't know Perl. Other
newbies are trying to get to where you are at, skill-wise. Why don't
you help repay what others before you helped you to become.

Flame on!

J.P.

(Tad McClellan) wrote in message news:<>.. .
> J.P. <> wrote:
>
> > To anyone who might be able to help here,

>
>
> Here is some help:
>
> Check the Perl FAQ *before* posting to the Perl newsgroup.
>
>
> > I've been seeking a way to create a POST form in Perl and handling the
> > auto-submission. But, how can I do this?

>
>
> perldoc -q form
>
> How do I automate an HTML form submission?
>
>
> > I've
> > been going in circles now for 3 days, trying to scour the web and
> > books for answers.

>
>
> You will be disappointed to discover that the answer was already
> on your very own hard disk then...
>
>
> > Thank you VERY much in advance for any help!

>
>
> Follow netiquette and prosper.
>
> Ignore netiquette and waste 3 days plus the time of thousands of
> other people around the world.

 
Reply With Quote
 
J.P.
Guest
Posts: n/a
 
      11-12-2003
Thanks for the heads-up! I appreciate the point in the right
direction...

I must say...if people aren't allowed to ask questions on these
newsgroups, then what are they for?

Sincerely thank you, Mr. Gleixner!

J.P.


"J. Gleixner" <> wrote in message news:<2kbsb.231$>...
> J.P. wrote:
>
>
> > I've been seeking a way to create a POST form in Perl and handling the
> > auto-submission. But, how can I do this? I don't need to display my
> > form that Perl will create....I just need to create the request and
> > fire it off.

>
> LWP will help you out.
>
> perldoc lwpcook

 
Reply With Quote
 
Ben Morrow
Guest
Posts: n/a
 
      11-12-2003
(J.P.) wrote:
> Mr. McClellan,
>
> Maybe you should attempt to be a bit less high and mighty...and
> actually help eliminate problems rather than adding to them.
>
> As I said, I scoured the area (TO INCLUDE my hard drive)...and I have
> NOT found an answer yet. Although I can do the auto-submission, I
> still haven't created the request. I don't want to display a
> page...just create a request with all my info and POST it forward.
>
> I think that the Perl world could use a lot fewer "self-righteous"
> people...and a few more truly helpful individuals.
>
> Just remember: when you were born, you didn't know Perl. Other
> newbies are trying to get to where you are at, skill-wise. Why don't
> you help repay what others before you helped you to become.
>
> Flame on!


I think you will find that Tad gave you the answer you wanted.

I think you would also find, if you were to hang around here for a
little while, that he nearly always gives extremely helpful advice to
all and sundry.

If you are not a little more careful, this will soon cease to include
you.

*PLONK*

Ben

--
If I were a butterfly I'd live for a day, / I would be free, just blowing away.
This cruel country has driven me down / Teased me and lied, teased me and lied.
I've only sad stories to tell to this town: / My dreams have withered and died.
<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=> (Kate Rusby)
 
Reply With Quote
 
Alan J. Flavell
Guest
Posts: n/a
 
      11-12-2003
On Wed, 12 Nov 2003, J.P. deposited TOFU onto the eternal scroll:

> Mr. McClellan,


This here's a public forum. Tad has an email address for personal
matters. But he sure doesn't deserve the treatment he's getting from
you.

> Maybe you should attempt to be a bit less high and mighty...and
> actually help eliminate problems rather than adding to them.


*plonk*
 
Reply With Quote
 
Tad McClellan
Guest
Posts: n/a
 
      11-12-2003
J.P. <> wrote:

> Thanks for the heads-up!



That is the same heads-up that I gave you.


> Sincerely thank you, Mr. Gleixner!



But I got a somewhat different response...


> "J. Gleixner" <> wrote in message news:<2kbsb.231$>...


>> LWP will help you out.



--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas
 
Reply With Quote
 
Chris Mattern
Guest
Posts: n/a
 
      11-12-2003
Please don't top-post. That makes life easier for everybody.
Thank you.

J.P. wrote:
> Mr. McClellan,
>
> Maybe you should attempt to be a bit less high and mighty...and
> actually help eliminate problems rather than adding to them.


If you had read his answer instead of being offended that he didn't
bother to stoke your self-esteem, you would have noticed that he *did*
answer your question. Even better, he told you how you can answer
such questions for yourself in the future.

>
> As I said, I scoured the area (TO INCLUDE my hard drive)...and I have
> NOT found an answer yet.


Because you didn't know how to look. Tad told you how to look.

> Although I can do the auto-submission, I
> still haven't created the request. I don't want to display a
> page...just create a request with all my info and POST it forward.
>
> I think that the Perl world could use a lot fewer "self-righteous"
> people...and a few more truly helpful individuals.


There are a lot of truly helpful individuals, including Tad. Unfortunately,
you probably won't be able to ask them for help any more, because you just
got listed in a lot of killfiles.
>
> Just remember: when you were born, you didn't know Perl. Other
> newbies are trying to get to where you are at, skill-wise. Why don't
> you help repay what others before you helped you to become.


They did. Tad told you how to find answers for yourself. You get
where the experts are not by knowing all the answers but by knowing
how to get the answers.

Chris Mattern

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble submitting POST ajax request on Chrome: INVALID_STATE_ERR:DOM Exception 11 laredotornado Javascript 2 10-21-2011 06:07 PM
Form within a Form - will it cause problems when submitting? Dave Smithz HTML 3 10-30-2009 07:24 AM
HTTP post constantly submitting johnmcauley@gmail.com Ruby 0 08-01-2007 02:56 PM
Submitting form from another frame does not run onsubmit of that form Kai Grossjohann Javascript 4 12-09-2003 02:49 PM
submit opener form after submitting pop-up form Marco Alting Javascript 7 10-30-2003 01:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57