Have you tried everything in Troubleshooting Perl CGI scripts yet? That guide youd lead you through the likely problems as well as help you develop a more detailed post on the problem.
Good luck :)
--
brian d foy <brian@stonehenge.com>
| [reply] |
You never send anything on STDOUT. Where's your Content-Type header? Where's the text you want to show the user? The user is requesting a page, yet your script doesn't return one, thus the "Premature end of script headers". | [reply] |
Could be lots of things, but the most obvious is that you don't print any http headers or any response to the http request. Does it work from the command line?
| [reply] |
That's not a CGI script. Adding content-type headers would be rather superfluous ;)
Just run it from the command-line. It's not meant to be run by your webserver. An added benefit from running it normally would be that you can see STDOUT and STDERR, and debug it from there.
| [reply] |
This script has more problems than just not working. You don't use strict (which is one reason I'm not going to look any closer at your script), and you don't check to see whether or not any of your calls to open succeed or fail (also check the call to close on the pipe open). That's just what I see in addition to other's comments. | [reply] |
When I get one of those I usually go to the command line and try to run the script (assuming no harm can result from that).
That usually shows the error, because it's usually something simple (a mispelled variable or something).
Try doing the same. | [reply] |
Aside from all the programing issues with this script, make sure your version of WWW::Search::Ebay is up to date. If ebay has made significant to their results page, the older versions probably won't work.
The current version was apparently updated May 18, 2005.
Update: Interestingly, in Active perl, if you install the "latest" WWW::Search::Ebay module using ppm, the module version it installs is NOT the version that shows up in the seach list. The latest version on CPAN is 2.206. The version on Active claims to be 2.17, however, after install, opening it and examining the source, it appears to be either v 1.22 (!!!) or v 2.14 depending on which version notation you believe.
And, as it turns out, this version WILL NOT retrieve any results from ebay.
| [reply] |
Well, its looks very difficult to provide the exact WWW::Search::Ebay module to make script workable. The anither way is using eBay API calls, but to use it, its required to obtain a developer license..
| [reply] |