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:
print("ERROR:Connection
where can i write web server?
On Thu, May 7, 2015 at 12:42 PM, Tom Evans wrote:
> On Thu, May 7, 2015 at 9:24 AM, steve malise wrote:
> >
> > client side code:
> > data = "message"
> > try:
> > clsocket = socket.socket(socket.AF_INET, s
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 wrote:
> On Thu, May 7, 2015 at 12:48 PM, steve malise
> wrote:
> > where can i write web se
else:
return HttpResponse("%s %s" % (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, 20
t 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 :
>
>> client code:
>> import httplib
>> import urllib
>>
>> data = urllib.urlencode({'data':'d
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 wrote:
>
> > Meaning write JavaScript
6 matches
Mail list logo