473,770 Members | 7,229 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting the HTTP response code that is sent via a cell phone

jl
I have a J2ME cell phone application that via the AMS (Application
Manager) delivers a status report to my server indicating whether the
suite was successfully installed and identifying the reason for failure
if it was not.

This report takes the form of a status code and a status message that
is sent using an HTTP POST request to the URL given by the
MIDlet-Install-Notify attribute in the JAD file.

I'm having a hard time finding out how to get to the HTTP POST request
status code that is sent to the server from the cell phone.

All of the examples that I see for request, response, originate from
the server. But I don't have a "hook". For example, the following code
has the $url variable to pass to file_get_conten ts. :

$contents = file_get_conten ts($url);

However, in my case, the server is just receiving the code but it is
not originating the communication.

Will someone please post the PHP code for this or at least a few hints
as to how to begin?

Thanks,
jl

Sep 8 '06 #1
2 1962
*** jl escribió/wrote (8 Sep 2006 04:30:04 -0700):
I'm having a hard time finding out how to get to the HTTP POST request
status code that is sent to the server from the cell phone.
Not being 100% sure of your exact needs (cell phones are way too
complicated for me xD) I may suggest cURL functions:

http://www.php.net/curl

For instance, curl_getinfo() has the "CURLINFO_HTTP_ CODE" option that
allows you to get the "Last received HTTP code". In any case, if it has to
do with HTTP and you can't do it with curl, bad thing ;-)
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Sep 8 '06 #2
jl wrote:
I have a J2ME cell phone application that via the AMS (Application
Manager) delivers a status report to my server indicating whether the
suite was successfully installed and identifying the reason for failure
if it was not.

This report takes the form of a status code and a status message that
is sent using an HTTP POST request to the URL given by the
MIDlet-Install-Notify attribute in the JAD file.

I'm having a hard time finding out how to get to the HTTP POST request
status code that is sent to the server from the cell phone.

All of the examples that I see for request, response, originate from
the server. But I don't have a "hook". For example, the following code
has the $url variable to pass to file_get_conten ts. :

$contents = file_get_conten ts($url);

However, in my case, the server is just receiving the code but it is
not originating the communication.

Will someone please post the PHP code for this or at least a few hints
as to how to begin?

Thanks,
jl
If it's sent as part of a POST request it should be in the $_POST array.

But why guess? Why not just ask the people who developed AMS how they
do it?

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Sep 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1758
by: Van Thompson | last post by:
You may have already had this question: I want to link my laptop to my cell phone and connect to a dial up ISP. The laptop to cell phone link is already commercially available, but for another use. The problem is the laptop modem wants a dial tone to begin communication. Is there a driver or a program to allow communication with the ISP via a cell phone? This idea came to me while sitting in an airport waiting for a data port.
8
24278
by: Andreas Klemt | last post by:
Hello, I get this error Message "cannot redirect after http headers have been sent" when I do this response.redirect ("home.aspx") How can I find out with vb.net if already a http header has been sent like If response.IsSentHttpHeader then ....
1
1415
by: Nathan Sokalski | last post by:
I have retrieved data from a database using a SELECT statement that includes an INNER JOIN. The data seems to be retrieved to the DataSet OK, but I am having trouble getting the data from the DataSet. The code I am using is as follows: Private Sub btnDownloadDB_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnDownloadDB.Click Dim papdatabase As New DataSet Dim cmdSelect As New...
7
4203
by: Mike Davies | last post by:
Hi, I'm developing an APP which pushed web content to various devices on a LAN (these devices happen to be IP phones). I need to broadcast a HTTP message to maybe 100 phones at a time but this is really slow. I've tried different things but not sure what the right way to go is. First way is to push the message to the phone but this takes anywhere from 500ms to 1000ms to complete. Incidentally, I'm not interested in the repsonse from...
3
4707
by: bweekend | last post by:
I like listen to radios using my cell phone every morning on my way work, but lately, my friend has suggested me to installed an off-board navigation software on my cell phone, she said that Nav4All thing is gonna help me find my ways easier in big cities, well, I'm just wondering, by connecting my cell phone with an external GPS receiver, is that gonna hamper my radio?
1
1046
by: Robert Iver | last post by:
Hello Everyone, I am looking for any suggestions as to where I can go to look for examples/information that would be relevant to a little project that I am going to be starting on soon. The app I'm trying to make is extremely simple. I want to take two inputs from the user: a cell phone number, and a 160 character or less message, and then it will send an SMS message to that cell phone number.
1
1203
by: darrel | last post by:
I've been struggling for some time now getting a RSS app to work. I'm creating RSS from existing XML files (transforming via XSLT). The problem is that the page, itself, is still being sent at UTF-16 when I create the RSS from XSLT. It's UTF-8 when I'm creating the XML myself via the DB and an XMLTextWriter. This gives IE headaches. It adds a space between each character in the XML and doesn't render it as an XML file.
9
2831
by: Patrick Jox | last post by:
Hi, I want to create an application that communicates with a cell phone (not smartphone) to synchronize data (contacts, appointments and tasks). could this be done by extending Activesync. In general how could I communicate with my cell phone using C#. Any ideas? Any points where to start? Thanks in advance Patrick
2
3578
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in uby/Rails. I started it in Perl and gave up on Perl as I went from the 'display the database information on the web page' to the 're-display the information from the database and allow the user to update the database using the web page' stage and realized...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10230
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10058
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10004
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9870
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.