in reply to HTTP Headers returned from CGI...

sounds like it's expecting you to issue a POST request when you're issuing a GET.
  • Comment on Re: HTTP Headers returned from CGI... (boo)

Replies are listed 'Best First'.
Re: Re: HTTP Headers returned from CGI... (boo)
by agent00013 (Pilgrim) on Jun 29, 2001 at 22:05 UTC
    maybe I'm being foolish and issuing this POST wrong, but when I use $req = HTTP::Request->new(POST => $link); in place of the same line where I used GET, I still get a Forbidden error.
      If you can access it via a browser, you can access it through perl.
      there are a lot of ways that people will try to verify you don't, but in the end, it is possible.
      1. what happens when you telnet to the address?
      2. are you setting the user agent?
      3. is this url in the middle of a sequence? you may need to set the referred from, too.
      these are what I can think of off the top of my head. there's probably a whole lot more.
        1) Hmm... well I telneted to the address and when I issued the GET command, it returned the proper page.
        2) No, I didn't set the user agent. What should I set it to for the best likelihood of getting a good result?
        3) This URL is directly accessible.

        Update: Perhaps I can use GET to retrieve the results of CGI's. Preferably, I'd like to be able to get a correct header back. As long as get works, I might be ok. *goes to fiddle around with it some more*