On 1/29/07, Chatchai Neanudorn <meledictas gmail.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-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|