Re: Filtering fields in http response data from http request url ?

2021-05-31 Thread Sam Chaffy
o, can I restrict the *fields* required in the response data from the >> *HTTP Request Url* ? >> Is there a generic param, which can be used ? >> >> Just like QuerySet, can we have "ValueSet" to restrict the fields(or >> columns) in the json response dat

Re: Filtering fields in http response data from http request url ?

2021-05-30 Thread Mottaz Hegaze
n I restrict the *fields* required in the response data from the > *HTTP Request Url* ? > Is there a generic param, which can be used ? > > Just like QuerySet, can we have "ValueSet" to restrict the fields(or > columns) in the json response data ? > > Regards, > Ada

Filtering fields in http response data from http request url ?

2021-05-30 Thread Adaeit Telle
Hi Django Developers, Json response from the django server is huge as the data fields contained are of big size. So, can I restrict the *fields* required in the response data from the *HTTP Request Url* ? Is there a generic param, which can be used ? Just like QuerySet, can we have "Val

Re: Passing value to http request without using django forms

2020-06-26 Thread Ogunsanya Opeyemi
Yes you can do that. OGUNSANYA OPEYEMI On Fri, Jun 26, 2020 at 10:01 AM Jeric Epon wrote: > Is there way to pass value to http request from a custom html input form > without using django modelForms ? > > -- > You received this message because you are subscribed to the Google G

Passing value to http request without using django forms

2020-06-26 Thread Jeric Epon
Is there way to pass value to http request from a custom html input form without using django modelForms ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Get authorization and list users in auth via http request

2019-09-12 Thread Ezequias Rocha
Thank you Ronit. Now I implemented the create_user via web request. Django Rocks! Ezequias. On Thursday, September 12, 2019 at 4:27:03 AM UTC-3, Ronit Mishra wrote: > > Hi, > > Its possible. And from what I am able to understand you're looking to > create restful services for authentication a

Re: Get authorization and list users in auth via http request

2019-09-12 Thread Ronit Mishra
Hi, Its possible. And from what I am able to understand you're looking to create restful services for authentication and registration. Your solution: Django Rest Framework Its a very detailed procedure so I can't point out all the points here, but you can follow any decent tutorial and get it ac

Re: Get authorization and list users in auth via http request

2019-09-11 Thread Ezequias Rocha
Dear Gabriel I have already access to the get method but not the creation service. I will have a creation of thousands of users from another system I am integrating. Would be nice if I have an easy way to create this creation way by loading from a list. Have you any idea how could I perform th

Re: Get authorization and list users in auth via http request

2019-09-09 Thread Gabriel Araya Garcia
...and why you don't use the Django admin app ? El lun., 9 sept. 2019 a las 15:00, Ezequias Rocha () escribió: > Hi everyone > > Could someone tell me if Django encourages the community to implement > auth/user authentication and user creation via http requests? > > I would like to *create *new

Get authorization and list users in auth via http request

2019-09-09 Thread Ezequias Rocha
Hi everyone Could someone tell me if Django encourages the community to implement auth/user authentication and user creation via http requests? I would like to *create *new users and *get users list* via a simple POST/GET http requests. Have someone did it here? Sincerely Ezequias -- You re

Re: Request & Response >> Device send HTTP request to web server

2019-03-19 Thread Sabuhi Shukurov
I was wondering if you have pdf version I have been looking but unfortunately not found the one free . On Tuesday, 19 March 2019 03:05:42 UTC+4, Mohan Goud wrote: > > Unit 9 of IoT by Vijay madisetti is completely related to that > > On Tue 19 Mar, 2019, 2:43 AM Sabuhi Shukurov wrote: > >> Hell

Re: Request & Response >> Device send HTTP request to web server

2019-03-19 Thread Sabuhi Shukurov
thank you! you let me find the book On Tuesday, 19 March 2019 03:05:42 UTC+4, Mohan Goud wrote: > > Unit 9 of IoT by Vijay madisetti is completely related to that > > On Tue 19 Mar, 2019, 2:43 AM Sabuhi Shukurov wrote: > >> Hello! >> >> I need your help and assistance in my project. Currently w

Re: Request & Response >> Device send HTTP request to web server

2019-03-18 Thread Mohan Goud
Unit 9 of IoT by Vijay madisetti is completely related to that On Tue 19 Mar, 2019, 2:43 AM Sabuhi Shukurov Hello! > > I need your help and assistance in my project. Currently we are developing > project on the device, which is on arduino written on C low level, it is > really difficult to hand

Request & Response >> Device send HTTP request to web server

2019-03-18 Thread Sabuhi Shukurov
Hello! I need your help and assistance in my project. Currently we are developing project on the device, which is on arduino written on C low level, it is really difficult to handle do many things, we want to keep it as simple as we can, everything will rely on to the our web app(Django). dev

Re: Django Http request question.

2018-01-21 Thread Peter of the Norse
have been reading about django http request documentation but it is still > kinda too hard to understand it. > So i would like to ask these few questions based on the code at the bottom of > this website: > https://www.twilio.com/blog/2014/11/build-your-own-pokedex-with-django

Django Http request question.

2018-01-17 Thread cherngyorng
I have been reading about django http request documentation but it is still kinda too hard to understand it. So i would like to ask these few questions based on the code at the bottom of this website: https://www.twilio.com/blog/2014/11/build-your-own-pokedex-with-django-mms-and-pokeapi.html

Re: Django http request to api error

2018-01-17 Thread Andréas Kühne
>> >>> >>> The code I'm using is at the bottom page of this website: >>> https://www.twilio.com/blog/2014/11/build-your-own- >>> pokedex-with-django-mms-and-pokeapi.html >>> >>> Where it give example on how you can make HTTP reques

Re: Django http request to api error

2018-01-16 Thread cherngyorng
bottom page of this website: >> https://www.twilio.com/blog/2014/11/build-your-own-pokedex-with-django-mms-and-pokeapi.html >> >> Where it give example on how you can make HTTP request function and >> retrieve database on your query. >> >> >> The

Re: Django http request to api error

2018-01-16 Thread Matemática A3K
gt; https://www.twilio.com/blog/2014/11/build-your- > own-pokedex-with-django-mms-and-pokeapi.html > > Where it give example on how you can make HTTP request function and > retrieve database on your query. > > > The code on the website is this. > > *query.py* > &

Django http request to api error

2018-01-16 Thread cherngyorng
django-mms-and-pokeapi.html Where it give example on how you can make HTTP request function and retrieve database on your query. The code on the website is this. *query.py* import requestsimport json BASE_URL = 'http://pokeapi.co' def query_pokeapi(resource_url): url = 

Re: making an http request internally

2014-10-17 Thread Collin Anderson
> > 1) If I simply call the view function obtained from resolve(), it will be > executed without middleware. I still want all the usual middleware > processing to occur though. > Undocumented, unsupported, but this might work: from myproject import wsgi response = wsgi.application.get_response(r

Re: making an http request internally

2014-10-17 Thread Erik Cederstrand
> Den 17/10/2014 kl. 06.02 skrev jus...@fanout.io: > > I am writing a middleware class that needs to be able to make HTTP requests > to the application as part of it's processing. I'd like to be able to do this > internal to the Django app if possible, rather than having to make external > requ

making an http request internally

2014-10-17 Thread justin
Hey list, I am writing a middleware class that needs to be able to make HTTP requests to the application as part of it's processing. I'd like to be able to do this internal to the Django app if possible, rather than having to make external requests to the webserver hosting the Django app. I've

Re: Http request with multiple files is not able to read by django server

2014-04-25 Thread Erik Cederstrand
Den 25/04/2014 kl. 14.39 skrev kousik chowdhury : > After going through all the links related to this problem, I come to know > that this problem may happen because of the **broken request** That is if > someone cancelled the request in between. > > As my request is an `AsyncTask` to the reques

RE: Http request with multiple files is not able to read by django server

2014-04-25 Thread Ilya Kazakevich
14 4:39 PM >To: django-users@googlegroups.com >Subject: Http request with multiple files is not able to read by django server > >I am trying to send multiple files(images and audio) from an android device >using >`MultipartEntityBuilder` (java) with http request. Everytime reques

Http request with multiple files is not able to read by django server

2014-04-25 Thread kousik chowdhury
I am trying to send multiple files(images and audio) from an android device using `MultipartEntityBuilder` (java) with http request. Everytime request including files reaches server and is working as expected but sometimes(10%) django server is not able to read the content of the request

Re: problem writing a view that displays http request

2013-08-09 Thread Sithembewena Lloyd Dube
Try the following: # In your case, just add 'include' to your conf.urls imports from django.conf.urls import include Then use it in the url declaration (see the official Django tutorial). On Fri, Aug 9, 2013 at 12:04 PM, Dinesh Gudi wrote: > *urls.py* > from django.conf.urls import patterns,

problem writing a view that displays http request

2013-08-09 Thread Dinesh Gudi
*urls.py* from django.conf.urls import patterns, url from testform import views urlpatterns = patterns('', url(r'^$', views.testhandler), ) *views.py* from django.http import HttpResponse def testhandler(request): return HttpResponse(request) -- You received this message because you a

Re: the body of an http request

2010-08-22 Thread Yangmin Li
you can access from HttpRequest.REQUEST *it is a dictionary like object.* *more info, you can refer : * http://docs.djangoproject.com/en/dev/ref/request-response/ On Mon, Aug 23, 2010 at 4:57 AM, Porya Jahandideh wrote: > Hi! > How can I access the body of an http request using an HttpR

the body of an http request

2010-08-22 Thread Porya Jahandideh
Hi! How can I access the body of an http request using an HttpRequest object? Thanks in advance. -- PJ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe

Re: Raw HTTP request processing?

2009-08-26 Thread John
Thanks but it seems that in this example (if I have understood correctly) it loads the entire request into memory. I need to convert stuff on the fly using streams on both input and output as both may be huge. I have a number of stages of transformation and it wouldn't take very many requests to b

Re: Raw HTTP request processing?

2009-08-25 Thread Peter Bengtsson
Here's an example: http://www.djangosnippets.org/snippets/1322/ On Aug 25, 5:43 pm, John wrote: > > Isn't it just > > request.raw_post_data > > Thanks and I suspected it was that but hoped there might be a little > example somewhere as the docs don't say much only this: > > HttpRequest.raw_post_

Re: Raw HTTP request processing?

2009-08-25 Thread John
> Isn't it just > request.raw_post_data Thanks and I suspected it was that but hoped there might be a little example somewhere as the docs don't say much only this: HttpRequest.raw_post_data The raw HTTP POST data. This is only useful for advanced processing. Use POST instead. As I am goin

Re: Raw HTTP request processing?

2009-08-25 Thread Peter Bengtsson
On Aug 25, 4:54 pm, John Baker wrote: > Some of my views need to process arbitrary incoming data that isn't a > normal web request i.e. process an incoming document and return an > altered document. > > How do I get a view to process raw incoming data rather than the usual > encoded parameters a

Raw HTTP request processing?

2009-08-25 Thread John Baker
Some of my views need to process arbitrary incoming data that isn't a normal web request i.e. process an incoming document and return an altered document. How do I get a view to process raw incoming data rather than the usual encoded parameters and form etc? It is obvious how to do this on outpu

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Valery Khamenya
ated via usual apache statement like: > > > > >> ... > > >> CustomLog /var/www/mysite/logs/access.log combined > > >> ... > > > > >> In this sense, yes, I do see only a single HTTP-request in logs, but > can > > >> tra

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Graham Dumpleton
t;>  CustomLog /var/www/mysite/logs/access.log combined > >>  ... > > >> In this sense, yes, I do see only a single HTTP-request in logs, but can > >> track multiple calls. > > >> How can I register those multiple calls? Easily, I send only one single >

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Valery Khamenya
g combined >> ... >> >> In this sense, yes, I do see only a single HTTP-request in logs, but can >> track multiple calls. >> >> How can I register those multiple calls? Easily, I send only one single >> email notification per veiw function call, but I re

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Karen Tracey
ed > ... > > In this sense, yes, I do see only a single HTTP-request in logs, but can > track multiple calls. > > How can I register those multiple calls? Easily, I send only one single > email notification per veiw function call, but I receive multiple emails > after

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Valery Khamenya
Hi Karen, thanks for reply. I am looking in log files that I believe are created by apache, at least they are created via usual apache statement like: ... CustomLog /var/www/mysite/logs/access.log combined ... In this sense, yes, I do see only a single HTTP-request in logs, but can track

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Karen Tracey
On Wed, May 27, 2009 at 7:59 AM, Valery Khamenya wrote: > Hi Graham, > > I do not do touch anymore. However multiple view func calls per single > HTTP-request still happen. > It's far more likely that Django is being routed multiple HTTP requests than that Django is callin

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Valery Khamenya
Hi Graham, I do not do touch anymore. However multiple view func calls per single HTTP-request still happen. best regards -- Valery A.Khamenya On Wed, May 27, 2009 at 1:47 PM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > > > > On May 27, 9:11 pm, Valery wr

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Graham Dumpleton
On May 27, 9:11 pm, Valery wrote: > Hi Graham > > the issue is still here even after mod_python is removed. I still > register multiple calls of my view function for a single HTTP-request > (proved via Django log file). For example, 25 calls per HTTP request > today. > &g

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-27 Thread Valery
Hi Graham the issue is still here even after mod_python is removed. I still register multiple calls of my view function for a single HTTP-request (proved via Django log file). For example, 25 calls per HTTP request today. And you can't believe, as always -- "I did nothing special!&qu

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-14 Thread Graham Dumpleton
On May 14, 11:08 pm, Valery wrote: > By the way, regarding the 30 func calls per HTTP request you'd mean > it is a bare conflict WSGI vs mod_python? That is likely to be a Django issue, you will have to explain that one better and maybe someone else can he

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-14 Thread Valery
to at least 'info' as > explained in: >  http://code.google.com/p/modwsgi/wiki/DebuggingTechniques > Then you need to work out what the process is perhaps hanging on. OK, I'll do. By the way, regarding the 30 func calls per HTTP request you'd mean it is a bare conflict WSGI

Re: Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-14 Thread Graham Dumpleton
reas the processes do exist. So, I have to kill them manually. You need to ascertain whether they were Apache parent process, Apache server child worker processes, or mod_wsgi daemon mode processes. > 2. For a single HTTP request I see that multiple calls of the corresponding > rendering functi

Troubles after switching to WSGI: lost apache processes, multiple view func calls per HTTP request

2009-05-14 Thread Valery Khamenya
request I see that multiple calls of the corresponding rendering function of a view.py are invoked. The overhead like 30 calls per single HTTP request is not acceptable neither from performance nor logic requirements. Details: a. both issues appeared after I've switsched to WSGI dipatching

Re: Testing Django and HTTP Request

2009-02-09 Thread Vitaly Babiy
Hey Alex I got cherrypy to work great I am going to post a blog as soon as my blog is done :) If anyone cares just ask here and I will post a write up here. Vitaly Babiy On Mon, Feb 9, 2009 at 7:52 AM, Vitaly Babiy wrote: > Thank you Alex for you help I will look in to this. > > Vitaly Babiy >

Re: Testing Django and HTTP Request

2009-02-09 Thread Vitaly Babiy
Thank you Alex for you help I will look in to this. Vitaly Babiy On Mon, Feb 9, 2009 at 12:32 AM, Alex Gaynor wrote: > > > On Mon, Feb 9, 2009 at 12:28 AM, Vitaly Babiy wrote: > >> Yeah, it does. I am going to have to look to see if can find a better >> stand alone server to do this instead o

Re: Testing Django and HTTP Request

2009-02-08 Thread Alex Gaynor
On Mon, Feb 9, 2009 at 12:28 AM, Vitaly Babiy wrote: > Yeah, it does. I am going to have to look to see if can find a better stand > alone server to do this instead of patching django. > > Vitaly Babiy > > > On Mon, Feb 9, 2009 at 12:22 AM, Alex Gaynor wrote: > >> >> >> On Mon, Feb 9, 2009 at 12:

Re: Testing Django and HTTP Request

2009-02-08 Thread Vitaly Babiy
Yeah, it does. I am going to have to look to see if can find a better stand alone server to do this instead of patching django. Vitaly Babiy On Mon, Feb 9, 2009 at 12:22 AM, Alex Gaynor wrote: > > > On Mon, Feb 9, 2009 at 12:18 AM, Vitaly Babiy wrote: > >> Yea, but I see a few problems whit t

Re: Testing Django and HTTP Request

2009-02-08 Thread Alex Gaynor
On Mon, Feb 9, 2009 at 12:18 AM, Vitaly Babiy wrote: > Yea, but I see a few problems whit that solution: > >- Hacky >- Still not guaranteed to work( it could take more time) >- Would really slow down the tests > > Vitaly Babiy > > > On Mon, Feb 9, 2009 at 12:15 AM, Alex Gaynor wrote:

Re: Testing Django and HTTP Request

2009-02-08 Thread Vitaly Babiy
Yea, but I see a few problems whit that solution: - Hacky - Still not guaranteed to work( it could take more time) - Would really slow down the tests Vitaly Babiy On Mon, Feb 9, 2009 at 12:15 AM, Alex Gaynor wrote: > > > On Mon, Feb 9, 2009 at 12:13 AM, Vitaly Babiy wrote: > >> Righ

Re: Testing Django and HTTP Request

2009-02-08 Thread Alex Gaynor
On Mon, Feb 9, 2009 at 12:13 AM, Vitaly Babiy wrote: > Right the problem is if I reload the server on ever test, there is not > enough time for the thread to kill the server. So when the next setUp comes > around the port is still in use. > I think I need to find a way to start a HTTP server at t

Re: Testing Django and HTTP Request

2009-02-08 Thread Vitaly Babiy
Right the problem is if I reload the server on ever test, there is not enough time for the thread to kill the server. So when the next setUp comes around the port is still in use. I think I need to find a way to start a HTTP server at the beginning of the test and keep it around till all test are d

Re: Testing Django and HTTP Request

2009-02-08 Thread Alex Gaynor
On Mon, Feb 9, 2009 at 12:06 AM, Vitaly Babiy wrote: > Hello everyone, > > I am working on a project that will need to make a request out to the web > and pull down some data, For testing purpose I was wonder what would be the > best way to test this. I don't want to make the actual request durin

Testing Django and HTTP Request

2009-02-08 Thread Vitaly Babiy
Hello everyone, I am working on a project that will need to make a request out to the web and pull down some data, For testing purpose I was wonder what would be the best way to test this. I don't want to make the actual request during the test, because for one if I am off-line all those tests wil

Re: Limiting HTTP request size

2008-12-20 Thread Graham Dumpleton
On Dec 20, 9:19 pm, Andreas Gustafsson wrote: > On Dec 19, 11:45 pm, Graham Dumpleton > wrote: > > > It hasn't got anything to do with LimitRequestBody. That this but > > exists in current versions of mod_python and can crop up at random > > times is a good reason why you don't want to be usin

Re: Limiting HTTP request size

2008-12-20 Thread Andreas Gustafsson
On Dec 19, 11:45 pm, Graham Dumpleton wrote: > It hasn't got anything to do with LimitRequestBody. That this but > exists in current versions of mod_python and can crop up at random > times is a good reason why you don't want to be using mod_python. I've never seen it happen at random, but it ha

Re: Limiting HTTP request size

2008-12-19 Thread Graham Dumpleton
On Dec 20, 12:48 am, Andreas Gustafsson wrote: > What's the recommended way to protect a Django application against > denial of service via huge file uploads or  huge POST requests in > general?  If I set the LimitRequestBody option in the Apache > configuration file, mod_python throws an omino

Re: Limiting HTTP request size

2008-12-19 Thread Abdel Bolanos Martinez
my friend i can suggest write a custom FileUploadHandler and improve the method receive_data_chunk(self, raw_data, start) and check the data that comes into your server, search in the documentation about write a custom FileUploadHandler, if need more help write now!!! On Fri, 2008-12-19 at 05:

Limiting HTTP request size

2008-12-19 Thread Andreas Gustafsson
What's the recommended way to protect a Django application against denial of service via huge file uploads or huge POST requests in general? If I set the LimitRequestBody option in the Apache configuration file, mod_python throws an ominous-looking exception when the limit is exceeded: System

Re: Access the HTTP request from a model

2008-11-25 Thread Peter
Absolutely - that is exactly what I needed to know. Thanks! There is a link http://www.djangoproject.com/documentation/models/save_delete_hooks/ which I had looked at which actually turns out to be the wrong one. -- Peter > > Take a look at the following > doc:http://docs.djangoproject.com/en/d

Re: Access the HTTP request from a model

2008-11-24 Thread R. Gorman
The request data is available in your views as a dictionary. For example: def memberView(request): if request.method == 'POST': request.POST['foo'] ... R. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: Access the HTTP request from a model

2008-11-24 Thread Rajesh Dhawan
> I am new to Django so please excuse if this has been asked before - I > could not find anything in my list searches. > > I am using the standard admin for a model called Member. I can > override the save method to perform a small database tweak when a > member is saved. This will involve access

Re: Access the HTTP request from a model

2008-11-24 Thread R. Gorman
The request object is accessed in your view. def memberView(request): --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsub

Access the HTTP request from a model

2008-11-24 Thread Peter
Hi, I am new to Django so please excuse if this has been asked before - I could not find anything in my list searches. I am using the standard admin for a model called Member. I can override the save method to perform a small database tweak when a member is saved. This will involve accessing the

Re: Client testing with custom http request referrer

2008-07-02 Thread Collin Grady
Please do not re-post your question - you already submitted this 7 hours before you posted this one, so you should just wait for replies to that :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Client testing with custom http request referrer

2008-07-01 Thread Rob P
I am writing an application that tracks URLs and stores different information about them (ie URL, referrer, user agent, etc...). Currently I am writing unit tests for it and I need to be able to spoof the referrer to test functionality (I only want to log specific referrers). Is there anyway I ca

Re: HTTP REQUEST/RESPONSE

2007-01-29 Thread James Bennett
l#sec6 Useful answer: It's just HTTP. There are varying formats of Python objects getting shuffled around inside Django to represent requests and responses, but you won't be able to access them from Java (not even Jython, since it doesn't support a high enough Python version to use D

Re: HTTP REQUEST/RESPONSE

2007-01-29 Thread Chatchai Neanudorn
I have already read it. But what I mean is, I need to write other program (java,.net) to use my django app (generate a http post request messge and extract a response to get data ). so, I need to know a real-format. Anyway, thank very. Other idea is welcomed. chatchai 2007/1/29, James Bennett <[

Re: HTTP REQUEST/RESPONSE

2007-01-29 Thread James Bennett
On 1/29/07, Chatchai Neanudorn <[EMAIL PROTECTED]> wrote: > I need to know what is structure of request/response create by django. How > to capture or are there any tools to see what request and response is? http://www.djangoproject.com/documentation/request_response/ -- "Bureaucrat Conrad, you

HTTP REQUEST/RESPONSE

2007-01-29 Thread Chatchai Neanudorn
I need to know what is structure of request/response create by django. How to capture or are there any tools to see what request and response is? Thank chatchai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Http request

2007-01-22 Thread Chatchai Neanudorn
o web with urllib.urlopen. What different is, I found file at request.POST?!? import os import urllib def sendbin(file): #split path n=os.path.split(file) #get it name name = n[len(n)-1] print name #open binary file file = open(file,'rb') #encode data as bosy of htt