[BangPypers] how to read remote uploads

2010-10-18 Thread Kenneth Gonsalves
hi, I have a gps device which sends it's position to a any web url. I want to catch this info which I will send to a port (say 9000). How do I do this in python - something totally new for me, so please give some clues on where to begin. -- regards Kenneth Gonsalves

Re: [BangPypers] how to read remote uploads

2010-10-18 Thread Kenneth Gonsalves
On Mon, 2010-10-18 at 17:10 +0530, Santosh Rajan wrote: If i understood this correctly you specify the web url for the gps device right? Why not set the port in the url itself like http://example.com:9000/. I have done that So the gps sends directly to port 9000 and you have a web server

Re: [BangPypers] how to read remote uploads

2010-10-18 Thread Noufal Ibrahim
On Mon, Oct 18 2010, Kenneth Gonsalves wrote: [...] the gps program sends the info with a php url - I need to collect the info and massage it before sending it to the webserver for display. So I need a small python program to listen on that port and collect whatever comes (is it socket

Re: [BangPypers] how to read remote uploads

2010-10-18 Thread Kenneth Gonsalves
On Mon, 2010-10-18 at 17:41 +0530, Noufal Ibrahim wrote: From your description, it sounds like a you need a simple program that listens on this port which will accept anything that comes in, process it and then send it to your actual web application. So, yes. this is a program that uses a

Re: [BangPypers] how to read remote uploads

2010-10-18 Thread Anand Balachandran Pillai
On Mon, Oct 18, 2010 at 5:43 PM, Kenneth Gonsalves law...@au-kbc.orgwrote: On Mon, 2010-10-18 at 17:41 +0530, Noufal Ibrahim wrote: From your description, it sounds like a you need a simple program that listens on this port which will accept anything that comes in, process it and then

Re: [BangPypers] how to read remote uploads

2010-10-18 Thread Noufal Ibrahim
On Mon, Oct 18 2010, Anand Balachandran Pillai wrote: [...] Or just use tcpdump as $ sudo tcpdump -A 'port 9000' on the machine where you want to capture the data. [...] I've not used tcpdump but wouldn't this give you a TCP packet level dump? Would not netcat (netcat -l 9000) be more

Re: [BangPypers] how to read remote uploads

2010-10-18 Thread Anand Balachandran Pillai
On Mon, Oct 18, 2010 at 6:21 PM, Noufal Ibrahim nou...@gmail.com wrote: On Mon, Oct 18 2010, Anand Balachandran Pillai wrote: [...] Or just use tcpdump as $ sudo tcpdump -A 'port 9000' on the machine where you want to capture the data. [...] I've not used tcpdump but wouldn't