Hi Paul,
Thank you for the reply. I have actually tried both
POST and GET methods on the html version and both work
fine from an html page. The srver accepts the field
value.  The problem arises when I use php headers. The
'mystery' is that the headers I am sending AND the
response headers coming from the  server are identical
to the headers sent and received when an html page is
used.  Yet the server is not registering the field
value.

I know that in some cases, the script on the server
first checks some predefined variables or browser
variables  and if they arte 'ok' then - and only then
- it accepts the submission.

I have searched the net for a comprehensive list of
REQUEST headers but couldn't find anyhting really
apart from the standard ones like 
Accept:
Referer:
Accept-Language: 
User-Agent: 
Host: 
etc..

Yet I know for a fact that there are more unusual
request headers e.g. x-forwarded-for  etc, which is
not mentioned on the list of standard request headers.
 My question is whether one could use such request
headers to tell the server more about the breowser
i.e. mimicking the browser more closely?

Best regards,

Dave
---------------------
Paul Menard wrote:
I would suggest getting for form and companion action
scripts working the good old fashion way first. Then
start experimenting with writting your own header.

>  
Hello,
I have this simple html form with only one field and a
submit button which uses the POST method. It works
fine.

I have been trying to learn php headers and found that
one could do exactly the same thing using headers.  
Using ieHTTPHeaders v 1.6  - agreat FREE utility - one
can see the headers being sent when the form is
submitted, and then the php script with headers is
written.  

It has worked fine always but in this particular case
although the headers are sent correctly .. the form
field value for some reason is not accepted by the
server.  I was wondering if there are variables
(predefined variables) that are required by the server
but not being included in the headers. 

Has anyone come across a similar problem?  
How could one mimic the browser 100% - including all
the browsers predefined / environment variables?


Any suggestion would be appreciated.

Dave



        
        
                
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease 
of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to