icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old February 22nd, 2007, 6:18 AM   #1 (permalink)
Surpass Fan
Comfy Contributor
 
davotoula's Avatar
 
Joined in Oct 2004
148 posts
Gave thanks: 2
Thanked 2 times
non-HTTP traffic

I have this (GPS) device that is able to send simple text strings to a configurable port on a remote host.

It would be handy to use my shared account to log and possibly display this data.

Since it is not a HTTP protocol I am not sure how to go about and accepting this traffic at the server end.

any help would be appreciated....
__________________
David Kaspar | SH60
davotoula is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 23rd, 2007, 3:41 AM   #2 (permalink)
Yabadabadoo
Super #1
 
Geoff's Avatar
 
Joined in Nov 2004
Lives in B.C., Canada
Hosted on Dedicated
1,013 posts
Gave thanks: 7
Thanked 28 times
well, you might be able to set up a php script and have the gps device send the text via variables, which can then be stored and displayed. but to do this you would need a fair knowledge of the HTTP Protocol... The first idea that came to me was a simple

GET http://domain.tld/phpscript.php?var=Text You Want To Store HTTP/1.1

or something along those lines, but i honestly dont remember much of the http specification, theres probably more to it than that.
__________________
Geoff Ellis - Surpass Dedicated Server Customer
www.adepttechs.net
Geoff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 23rd, 2007, 5:38 AM   #3 (permalink)
Surpass Fan
Comfy Contributor
 
davotoula's Avatar
 
Joined in Oct 2004
148 posts
Gave thanks: 2
Thanked 2 times
Thanks for the answer Geoff but I am afraid it is more complicated than that (or I was not clear in my original post).

I have no control on the format of the "message" the device sends. It is just a single line to a port on a remote host.

A webserver will drop/ignore this communication because it is not according to HTTP standard.

I cannot select a script name because for that you need to used HTTP protocol.

I have tried by doing a telnet on port 80 to the webserver, typing a single line and there was no trace of this in the logs.

The only solution I can think of is some kind of socket listener on a high port but I doubt that that is allowed on shared hosting.

Now is the time for support I think :-)
__________________
David Kaspar | SH60
davotoula is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old February 23rd, 2007, 2:16 PM   #4 (permalink)
Yabadabadoo
Super #1
 
Geoff's Avatar
 
Joined in Nov 2004
Lives in B.C., Canada
Hosted on Dedicated
1,013 posts
Gave thanks: 7
Thanked 28 times
ya you wouldnt be able to install custom software on a shared server i suspect lol... but ya, a custom application could handle it, my suggestion was based on that i thought you had control over the text being sent, and that it would have to work over the http protocol lol
__________________
Geoff Ellis - Surpass Dedicated Server Customer
www.adepttechs.net
Geoff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On