Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Travistee2

    Pleae test this LWP example

    I added: $result="$response->content"; print "<br>$result"; at the end of the script. I doesn't print anything and the form that the post was to shows nothing updated. Thanks for helping with this.
  2. Travistee2

    Pleae test this LWP example

    Now that the example appears to work, I want to see if I can actually submit a form, so I tried this: ####################### print "before form was sent"; use strict; use warnings; use LWP 5.8.6; use LWP::UserAgent; my $browser = LWP::UserAgent->new; $browser->env_proxy; my $url =...
  3. Travistee2

    Pleae test this LWP example

    I tried this, with the altavista form variables updated from what I had originally. I'm still getting nothing after it prints print "before form was sent"; ####################### use strict; use warnings; use LWP 5.8.6; use LWP::UserAgent; my $browser = LWP::UserAgent->new; my $word =...
  4. Travistee2

    Pleae test this LWP example

    It seems the ISP I was on originally did not have the complete LWP install. I tried it on another ISP and this is what I got: before form was sent LWP version 5.803 The user agent is an LWP::UserAgent LWP::UserAgent version 2.033 The response is an HTTP::Response form was sent Using this...
  5. Travistee2

    Pleae test this LWP example

    I tried it with use LWP 5.53; #<--- thats the perl versiion before form was sent LWP version 5.53 The user agent is an LWP::UserAgent LWP::UserAgent version 1.80 Then compile gets this: perl postxe1.cgi Content-type: text/html <HTML><HEAD> <TITLE></TITLE> </HEAD> <BODY TEXT=#DD00DD...
  6. Travistee2

    Pleae test this LWP example

    This printed in the browser: before form was sentLWP version 5.53 The user agent is an LWP::UserAgent LWP::UserAgent version 1.80 This is from telnet: perl postxe1.cgi Content-type: text/html <HTML><HEAD> <TITLE></TITLE> </HEAD> <BODY TEXT=#DD00DD LINK=#00FFCC VLINK=#0040ff >before form was...
  7. Travistee2

    Pleae test this LWP example

    Sorry if this is too basic, I haven't been using LWP I got this compile error: Can't locate object method "post" via package "LWP::UserAgent" (perhaps you forg ot to load "LWP::UserAgent"?) at postxav.cgi line 41. I tried changing this: use strict; use warnings; use LWP 5.53...
  8. Travistee2

    Pleae test this LWP example

    I print a line at the start of the script to see that it started ok. That line prints ok. Then the LWP above is next. Nothing happens for the LWP example I gave above. Can you give me the code for the call to env_proxy that you added. I don't know what you mean by using a proxy. What...
  9. Travistee2

    Pleae test this LWP example

    I can't get this example using LWP to work. Can someone test this and let me know if it actually works the way it is. Then I can try to narrow down why it wont work for me. I understand that the version number for LWP should be the same as my PERL installation. thanks ########### use...
  10. Travistee2

    How to submit form from perl?

    I tried this based on the example I found at: http://www.perl.com/pub/a/2002/08/20/perlandlwp.html?page=2 ############ use strict; use warnings; #use LWP 5.64; use LWP::Simple; my $browser = LWP::UserAgent->new; my $url = 'http://somewhere.com/wwwboard/index.html'; my...
  11. Travistee2

    How to submit form from perl?

    I looked at the LWP module. It has quite a long list of functions. Can someone narrow it down to the ones that let me send data to another script as if it was sent from a FORM POST. Since I have no control over the script it is sending to, I can't assume I will have something to check to...
  12. Travistee2

    How to submit form from perl?

    Don't get paranoid. Its not for spamming forums. I have a few forums of my own that I want to post the same things to.
  13. Travistee2

    How to submit form from perl?

    print "Location:http://www.somewhere.com/wwwboard/cgi-bin/wwwboard/wwwboard.pl?nam e=cindy&subject=new&body=saysomething"; I am trying to simulate what the form sends to the script. <a name="post"><center><h2>Post A Message!</h2></center></a> <form method=POST...
  14. Travistee2

    Only allow a script to run if called from a specific location?

    Thats not a foolproof solution. Its easy for someone to make a url that contains the strings you are checking for.
  15. Travistee2

    How to submit form from perl?

    I want to write a perl script to fill out a form and submitit. This is the url the form sends data to. print "Location:http://www.somewhere.com/wwwboard/cgi-bin/wwwboard/wwwboard.pl?nam e=cindy&subject=new&body=saysomething"; Should this work? If it does, how do I get it to continue in the...

Part and Inventory Search

Back
Top