For those who patiently read each line

Max M maxm at mxm.dk
Tue Aug 13 15:14:14 CEST 2002


snodx at hotmail.com wrote:

> Dear masters of Python, I need to convert a piece of Python
> code to its equivalent Java code. Before I can attempt a conversion
> I need to understand what the Python code does exactly.


Hmm ... it sends an sms!

It does so by sending a request to a webpage:

http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&to=555-234234&text=here%20is%20a%20message

What happens is that the program acts like a webbrowser and calls the 
abowe url, as if you had entered it yourself in a browser yourself.

But first it makes input validation of the parameters passed to the script.

It would typically be started from the commandline like:

sendsms 555-234234 "here is a message"


regards Max M




More information about the Python-list mailing list