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

Re: CGI::Push Only Works With Netscape. Now What?

by merlyn (Sage)
on Sep 19, 2001 at 21:58 UTC ( [id://113422]=note: print w/replies, xml ) Need Help??


in reply to CGI::Push Only Works With Netscape. Now What?

See my column on that.

(Didn't we just do this a few days ago? Yeah, we did.)

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: CGI::Push Only Works With Netscape. Now What?
by sierrathedog04 (Hermit) on Sep 20, 2001 at 01:04 UTC
    Thanks for all the help, people. In order not to violate Merlyn's copyright I am not going to repost his code here, but I wonder whether perhaps his article contains a typo. Line 55 reads
    "=55= my $out = IO::File->new($DIR_html,"w") or
    Shouldn't this line actually be
    "=55= my $out = IO::File->new($URL_html,"w") or
    If someone could verify the correct code for me I would appreciate it.
      No, $URL_html is the view from the browser. You're doing a unix file open, so it needs to be the view from the Unix side, $DIR_html. That's explained in the column. You did read the column, right?

      -- Randal L. Schwartz, Perl hacker

        Yes, Merlyn, but I became confused and not as a result of anything you wrote.

        In fact, you do say in the article "URL_html contains the same name as $DIR_html, but mapped into the webserver's space so that we can redirect the client's browser to the results file."

        The lesson here is that every static web page has a dual nature. It possesses a physical path in the file system, and it possesses a URL under the http protocol.

        Clearly, it would have been a mistake for me to attempt to try to pass a URL to IO::File->new, which is what my proposed "correction" would have done.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-29 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found