On Sun, Dec 12, 2004 at 05:52:02PM -0500, Ben Boulanger wrote:
> A little more on this.. The error message in the apache error_log is:
>       Bad method or uri at /var/www/html/drivetool/index.cgi line 81
> 
> Line 80-82 in my script is:
> $mdclstr->write_request(
>        GET => "/MediaCtrl/cgi-bin/Shell.pl\?Command=seamfg\%20-dk$drive",
>               'User-Agent' => "Mozilla/4.0",
> );
> 
> This works great under firefox/mozilla, even an old netscape.  Anyone have 
> any clue why one would work and not the other?  I wouldn't think it would 
> matter at all which browser was used as this GET is on the server side.
> 
> Any help would be appreciated.

Hi Ben,

You may well get lucky and find that someone had a problem that manifested
itself similarly, but that's no assurance that it is the same problem.

Unfortunately, there's not enough information to answer your question clearly.

Nonetheless, here are debugging some suggestions:

Is "$mdclstr" a string or blessed object?
Does the class or object have a write_request() method?
Are you checking for the return value of the method?
What happens inside the write_request method?
What happens when you invoke curl from the command line with the same URL?
What's the value of the $drive variable?

If none of those suggestions do the trick, I suggest that you provide some
more context for the problem.

-Gyepi
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to