in reply to Re: HTTP Headers returned from CGI...
in thread HTTP Headers returned from CGI...

for clarification: This CGI is on a different server. I can access it through Internet Explorer or Netscape and load it up fine. So I'm pretty sure it's "turned on." This is also why I don't understand being "Forbidden." If I'm not forbidden from my web browser, why would I be trying to access the script through PERL? Or is the problem that PERL is trying to access the CGI script itself and not the output it's creating?

Yes, I have the right shebang. The program wouldn't give me any output if it wasn't in there. =)

10.4.4 403 Forbidden The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
  • Comment on Re: Re: HTTP Headers returned from CGI...

Replies are listed 'Best First'.
Re: Re: Re: HTTP Headers returned from CGI...
by andreychek (Parson) on Jun 29, 2001 at 21:36 UTC
    Ahhhh, I think I misunderstood some of what you said. The CGI script you are running is working just fine.. but you are saying that every time your CGI script accesses one of the links you would like to check, it's that link which is returning the invalid method headers, not the link you are accessing with your web browser. Hmmm....

    Now we have an interesting question :-) After digging around the docs some, I don't immediatly see anything incorrect about your approach. But if I do, I'll be sure to post it. Sorry about the misunderstanding there :-) Good luck,
    -Eric
Re: Re: Re: HTTP Headers returned from CGI...
by aijin (Monk) on Jun 29, 2001 at 21:47 UTC
    That sure sounds like a permissions issue to me.

    Check the ownership and permissions of the CGI you're trying to reach. Then check the ownership of the script.

    I'll bet one or both of the following is going on: a) the ownership of the script is different from that of the CGI.
    b) their groups are the same, but the CGI's group permissions are set to r--, where they should be r-x.

    After re-reading that, I'm not sure that I've made it totally clear. Feel free to message me if you'd like further explanation.

    -aijin