HTTP Header with mod_perl??

Discussion in 'Perl Misc' started by retoh :\), Apr 5, 2004.

  1. retoh :\)

    retoh :\) Guest

    Howto send HTTP Header lines with mod_perl?

    I want to bypass the default HTTP header and send additional HTTP keys to
    the browser.

    A simple $r->print( ... ) **before** $r->content_type( ... ) had the effect
    the data
    was printed to the browser window instead to the HTTP header.

    Had no chance to use $r->header_out( ... ) so far:
    Can't locate object method "header_out" via package "Apache::RequestRec"

    Any complete (functional) code samples appreciated!

    --retoh :)
    retoh :\), Apr 5, 2004
    #1
    1. Advertising

  2. retoh :\)

    retoh :\) Guest

    [p.s.]: HTTP Header with mod_perl??

    [p.s.]
    I'm using mod_perl 1_99_13 with Apache 2.0.x
    retoh :\), Apr 5, 2004
    #2
    1. Advertising

  3. retoh :\)

    Tore Aursand Guest

    On Mon, 05 Apr 2004 16:52:58 +0200, retoh :) wrote:
    > Howto send HTTP Header lines with mod_perl?


    This is explained in the mod_perl documentation;

    <http://perl.apache.org/docs/2.0/user/coding/coding.html#HTTP_Response_Headers>


    --
    Tore Aursand <>
    "The pure and simple truth is rarely pure and never simple." -- Oscar
    Wilde
    Tore Aursand, Apr 5, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ian douglas
    Replies:
    0
    Views:
    1,805
    ian douglas
    Aug 19, 2003
  2. Ziya Suzen
    Replies:
    0
    Views:
    432
    Ziya Suzen
    Feb 1, 2004
  3. Vivek Mehta
    Replies:
    3
    Views:
    8,644
    Vivek Mehta
    Aug 12, 2004
  4. mlt
    Replies:
    2
    Views:
    803
    Jean-Marc Bourguet
    Jan 31, 2009
  5. Replies:
    2
    Views:
    434
    Big and Blue
    Jan 25, 2006
Loading...

Share This Page