systemz64 has asked for the wisdom of the Perl Monks concerning the following question:
first timer here :-)
I have an odd problem. I have written a perl module that I use to post data to an ESB. It uses LWP and HTTP::Request. I have a test unit that uses this and it works great. My first real use for this module was to do some processing within a cgi script (which happens to use cgi.pm). Once the processing is done, I call my module in order to post a message to the ESB, and then return OK to the browser. That's the theory. What happens in reality is that the call to the ESB hangs for about 10 seconds when called from within the CGI.
It seems like this may be due to STDIN/STDOUT redirection but I am not sure. I just cannot make it work and would appreciate some guidance.
Thx Z
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Post within CGI
by GrandFather (Saint) on Dec 14, 2011 at 00:34 UTC | |
by Anonymous Monk on Dec 14, 2011 at 09:30 UTC | |
|
Re: Post within CGI
by Anonymous Monk on Dec 14, 2011 at 00:34 UTC | |
|
Re: Post within CGI
by TJPride (Pilgrim) on Dec 14, 2011 at 09:14 UTC | |
by systemz64 (Initiate) on Dec 14, 2011 at 10:08 UTC | |
by scorpio17 (Canon) on Dec 14, 2011 at 15:24 UTC | |
by systemz64 (Initiate) on Dec 14, 2011 at 15:48 UTC | |
by Anonymous Monk on Dec 15, 2011 at 09:25 UTC | |
by Corion (Patriarch) on Dec 15, 2011 at 09:34 UTC | |
by Anonymous Monk on Dec 15, 2011 at 09:40 UTC | |
| |
by Anonymous Monk on Dec 21, 2011 at 07:58 UTC | |
| |
by TJPride (Pilgrim) on Dec 14, 2011 at 17:05 UTC |