[Texas] Sending data over tcp
Jeremy Kelley
jeremy at 33ad.org
Sun Sep 18 03:21:20 CEST 2011
Have you considered just using a webservice?
Unless you have true need of a raw socket, I'd just use HTTP.
Collecting info like name, etc is perfect for a form post.
-j
On Sat, Sep 17, 2011 at 7:46 PM, Vikram Chhatre
<crypticlineage at gmail.com> wrote:
> I have figured out how to do this, albeit through a hack. Thank you
> for reading any way.
>
> Vikram
>
>
>
> On Sat, Sep 17, 2011 at 2:19 PM, Vikram Chhatre
> <crypticlineage at gmail.com> wrote:
>> Hello everyone,
>>
>> I recently wrote a python script which generates some bash scripts for
>> data analysis. Apart from this, I want this script to ask the user
>> for their name and email address and send it over to my server over a
>> tcp connection.
>>
>> There are some example server and client scripts available online and
>> I was trying to follow this one:
>> http://wiki.python.org/moin/TcpCommunication
>>
>> There are several questions I have about this:
>>
>> 1. Where would the server side script reside on the server?
>> 2. How do I set my webserver to listen at a particular port number?
>> 3. When a connection comes in, what will trigger the execution of the
>> server side script?
>>
>> I realize that this particular example is only sending some message
>> back to the client. But what I want to do is write the incoming
>> information to a file on the server (in a secure place of course) and
>> send a message back to the client that their information has been
>> recorded.
>>
>> If you have any advice on how to accomplish this, I would highly appreciate it.
>>
>> Thanks
>> Vikram
>>
> _______________________________________________
> Texas mailing list
> Texas at python.org
> http://mail.python.org/mailman/listinfo/texas
>
--
The Christian ideal has not been tried and found wanting;
it has been found difficult and left untried – G. K. Chesterton
More information about the Texas
mailing list