|
|
#1 (permalink) |
|
Surpass Fan
Comfy Contributor
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 |
|
|
|
|
|
#2 (permalink) |
|
Yabadabadoo
Super #1
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. |
|
|
|
|
|
#3 (permalink) |
|
Surpass Fan
Comfy Contributor
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 |
|
|
|
|
|
#4 (permalink) |
|
Yabadabadoo
Super #1
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
|
|
|
|