Monday, May 23, 2011

GET/POST

I am really new to Django. I've set up an Apache server with
mod_wsgi,and Django, and I've hit what is probably a common
roadblock.

When I use "curl" to invoke a url using GET, it works just fine. But
when I invoke it using POST, I get a 403 error:

curl http://web1.tunnlr.com:xxxxx/wsgi-scripts/index.json # works
fine, creates JSON
curl -X POST http://web1.tunnlr.com:xxxx/wsgi-scripts/index.json #
produces a 403 error


I need to get this working because I am constructing an app that
returns JSON. However, this app is setup to invoked by an app engine
that will be POSTing to it. Right now, I see from that app engines
logs that it is getting back a 404, just like my "curl" test.

Can someone point me in the right direction? Thanks,

--
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 http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate