HTTP HEADER

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
marthen
Forum Newbie
Posts: 1
Joined: Fri Apr 28, 2006 4:17 am

HTTP HEADER

Post by marthen »

Weirdan | Please use

Code: Select all

, [syntax="language"]and

Code: Select all

tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi all,

I am very confuse about this situation:

I had an J2ME application running on handset, but when i try to query my server (Windows 2000 server, IIS 5.0) by using PHP 4 script to MS.SQLServer 2000 the result is :

Code: Select all

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Thu, 27 Apr 2006 05:51:06 GMT
Connection: close
X-Powered-By: PHP/4.0.6
Content Type: text/HTML
....
....
QUERY SUCCESS

where QUERY SUCCESS is the only output i need!!!
In my PHP Script, i never throw HTTP HEADER, nor in my J2ME application.

It was wierd because when i try to run it from the emulator (i use NetBeans Mobility Pack) it runs perfectly, throwing QUERY SUCCESS as the web server response!!

I also tested it using common HTML FORM with POST method & GET method, both run perfectly.

I still in curiosity, i move my server to my Linux server running Apache as webserver and PHP as serverside script. And try to hit from handset and it successfully run, which the result is QUERY SUCCESS.

My question is, why IIS response to my handset query always using HTTP HEADER??
This is not happening in Apache.
Is there any setting to be made prior accessing it using handset.


Weirdan | Please use

Code: Select all

, [syntax="language"]and

Code: Select all

tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

My question is, why IIS response to my handset query always using HTTP HEADER??
This is not happening in Apache.
It's always happening using any webserver. Headers is a necessary part of http protocol.

The real question is 'why your handheld do not interpret headers thrown by your IIS as http headers and shows them to you instead?'.
Post Reply