List Info

Thread: HTTP REQUEST/RESPONSE




HTTP REQUEST/RESPONSE
user name
2007-01-29 10:36:18
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 users"; group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to django-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: HTTP REQUEST/RESPONSE
user name
2007-01-29 10:40:00
On 1/29/07, Chatchai Neanudorn <meledictasgmail.com> 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_r
esponse/

-- 
"Bureaucrat Conrad, you are technically correct -- the
best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: HTTP REQUEST/RESPONSE
user name
2007-01-29 10:45:37
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 < ubernostrumgmail.com">ubernostrumgmail.com>:

On 1/29/07, Chatchai Neanudorn < meledictasgmail.com">meledictasgmail.com> wrote:
&gt; 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 are technically correct -- the best kind of correct.&quot;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users"; group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to django-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: HTTP REQUEST/RESPONSE
user name
2007-01-29 11:11:22
On 1/29/07, Chatchai Neanudorn <meledictasgmail.com> wrote:
> 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

Pedantic answer:

HTTP requests coming in to Django have this format:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#
sec5

HTTP responses coming out of Django have this format:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#
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
Django).

So use Java's built-in HTTP request classes to send requests
to
Django, and use Java's built-in HTTP response classes to
read what you
get back. They're just plain old HTTP.

-- 
"Bureaucrat Conrad, you are technically correct -- the
best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )