Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Send a String to another URL

by tospo (Hermit)
on May 12, 2011 at 08:30 UTC ( #904317=note: print w/replies, xml ) Need Help??

in reply to Send a String to another URL

Why don't you make that form-processing script send a request to this other URL and process the response fomr that one? Why do you explicitly print a header in your script and not use the 'header' method?

Replies are listed 'Best First'.
Re^2: Send a String to another URL
by virtualweb (Sexton) on May 12, 2011 at 12:33 UTC

    Hello Tospo.. thanx for your suggestions

    I taught myself perl through books and tutorials so I have many lagoons and holes in my knowledge... example, I never heard of the 'header' , I dont know how it is used and what the syntax is.

    Perhaps you could show me and then I could try.

    Thanx again

      ah, ok. In that case you should start with the CGI docs here. As you can see, you print the header like this:
      use CGI; my $q = CGI->new; print $q->header(); ### generate and print more stuff for the web page here
      As suggested previously, you can use LWP::Simple to send your stuff and capture the response from the remote server, which might tell you if the message has been sent successfully if that service is well implemented. If you do get a "receipt" then it will probably be in XML format and you will then want to use a module that helps you with parsing the XML, something like XML::Simple (there are many options).

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2018-03-19 02:46 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (232 votes). Check out past polls.