problem retrieving html header made by php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fabrice

    problem retrieving html header made by php

    hi !

    here is my problem ! I add a field to an html header using php
    function header("field_n ame: value"). When the php page is on my local
    machine (which act as a server) i can read the "value" of field_name
    (i also on my local machine). But when i put the file on another
    server and i'm still on my local machine i cannot read this field_name
    (but i can see the page on my browser). Can any one tell me what is
    the problem ?

    Thanks
    Fabrice
  • Pedro Graca

    #2
    Re: problem retrieving html header made by php

    Fabrice wrote:[color=blue]
    > here is my problem ! I add a field to an html header using php
    > function header("field_n ame: value"). When the php page is on my local
    > machine (which act as a server) i can read the "value" of field_name
    > (i also on my local machine). But when i put the file on another
    > server and i'm still on my local machine i cannot read this field_name
    > (but i can see the page on my browser). Can any one tell me what is
    > the problem ?[/color]

    How do you read the value?
    Do you look at the headers sent by your server?
    Does it appear as HTML content inside your browser?

    (fishing)
    Is the configuration of your web-server and the other server alike?

    (still fishing)
    Are there no proxies between you and the second server 'eating' headers?

    Try (yes, still fishing :) )
    header('X-field_name: name');

    I don't know if all headers you could make up are allowed, I think all
    "X-???" headers are
    --
    --= my mail box only accepts =--
    --= Content-Type: text/plain =--
    --= Size below 10001 bytes =--

    Comment

    Working...