Just FYI:
403: http://en.wikipedia.org/wiki/HTTP_403On Mon, May 23, 2011 at 10:49 PM, Gabriel Gunderson <gabe@gundy.org> wrote:
On Mon, May 23, 2011 at 8:04 PM, egilchri <egilchri@gmail.com> wrote:Welcome. Hope you enjoy your time spent with Django!
> 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.
403 is 'Forbidden' and I think it might have something to do with this:
> 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
http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#rejected-requests
It's a good thing :) It's trying to make the Internet a safer place
--starting with your site.
Now, before you said 403... Did you really mean 404? That would
> 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.
change my reply.
Best,
Gabe
--
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.
--
AJ
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.
No comments:
Post a Comment