Re: Sending Data from client side(another computer) to Django(my computer) using Socket library

2015-05-11 Thread steve malise
e trying something that Django was never designed for. > > It would be really helpful to know what are you really trying to do, > instead of just trying techniques that may or may not work for your case. > > > On Mon, 11 May 2015 15:18:37 +0200 > steve malise <stviasw...@gmail.com&g

Re: Sending Data from client side(another computer) to Django(my computer) using Socket library

2015-05-11 Thread steve malise
t that kind of request in the browser, the best aproach would > be open the JavaScript and make the request there. > > 2015-05-11 10:09 GMT-03:00 steve malise <stviasw...@gmail.com>: > >> client code: >> import httplib >> import urllib >> >> data

Re: Sending Data from client side(another computer) to Django(my computer) using Socket library

2015-05-11 Thread steve malise
t; % (request.method, request.body)) on the client side i get "200 OK"(everything is ok) but when i open my browser it return "GET", i want it to return or display POST DATA. how can i do that?? please help On Thu, May 7, 2015 at 4:13 PM, Thomas Levine <_...@thomasle

Re: Sending Data from client side(another computer) to Django(my computer) using Socket library

2015-05-07 Thread steve malise
r and send data from another computer to django,then i get this "code 400, message Bad request syntax ( data from another computer)" On Thu, May 7, 2015 at 3:28 PM, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, May 7, 2015 at 12:48 PM, steve malise <stviasw...@gma

Re: Sending Data from client side(another computer) to Django(my computer) using Socket library

2015-05-07 Thread steve malise
where can i write web server? On Thu, May 7, 2015 at 12:42 PM, Tom Evans <tevans...@googlemail.com> wrote: > On Thu, May 7, 2015 at 9:24 AM, steve malise <stviasw...@gmail.com> wrote: > > > > client side code: > > data = "message" > > try

Sending Data from client side(another computer) to Django(my computer) using Socket library

2015-05-07 Thread steve malise
client side code: data = "message" try: clsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) clsocket.connect(('192.168.2.2', 8000)) print("Connection has been Made") clsocket.send("POST / HTTP/1.1 "+ data) clsocket.close() except: