HTTP HEADER
Posted: Fri Apr 28, 2006 4:53 am
Weirdan | Please use
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"]andCode: 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 SUCCESSwhere 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"]andCode: 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]