Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: HTTP Headers returned from CGI... (boo)

by agent00013 (Pilgrim)
on Jun 29, 2001 at 22:05 UTC ( [id://92741]=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re: HTTP Headers returned from CGI... (boo)
by boo_radley (Parson) on Jun 29, 2001 at 22:17 UTC
    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*

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://92741]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found