Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: CGI Apache2Netscape4

by gnat (Beadle)
on Jul 12, 2000 at 00:23 UTC ( [id://22096]=note: print w/replies, xml ) Need Help??


in reply to CGI Apache2Netscape4

I don't know what the problem might be. One possibility is that Netscape's server is more aggressive about killing CGI programs when they don't produce valid headers. Try this at the very start of your program:

BEGIN { print "Content-Type: text/plain\n\n"; open(STDERR, ">&STDOUT"); }
That will let you see all that is printed by your program. Perhaps it's not producing a valid header? Maybe something odd is coming from CGI.pm.

Does the Netscape server have an option to disable cookies or anything like that? It might be filtering outgoing headers. Beyond that, I really haven't a clue. I'd love to find out when you solve it, though.

Good luck!

Nat

Replies are listed 'Best First'.
RE: Re: CGI Apache2Netscape4
by coreolyn (Parson) on Jul 12, 2000 at 02:12 UTC
    Well for now I've just settled for redirecting from the netscape server to the apache server. Thanks for the advice I'll be trying to figure out if the information I recieved from your suggestion will help me to figure the problem out. Here are the results I recieved; Off the netscape server (where it doesn't work) I recieve this information: FORM METHOD="POST" ENCTYPE="application/x-www-form-urlencoded" And then just the htmlified (tags showing) first form. Where as the apache server reports: Content-Type: text/html; charset=ISO-8859-1 and loads up the form/script like a champ. Thanks again (I'm calling it a day) Coreolyn.
      You can configure Apache to send Content-Type headers automatically. Are you sending one explicitly from your script? Depending on if or how the server parses things, you may have to do more work to get the right stuff to the browser.

      If you're using CGI.pm, just use the header() method.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-24 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found