Re: "CSRF verification failed" when sending simple GET request using curl

2011-01-21 Thread scabbage
fter restarting the server. Is this expected? On Jan 20, 4:32 pm, Russell Keith-Magee wrote: > On Fri, Jan 21, 2011 at 4:40 AM, scabbage wrote: > > How do I include CSRF token in a curl request then? I use curl for > > debugging. Cannot seem to find any info on Google :( > >

Re: "CSRF verification failed" when sending simple GET request using curl

2011-01-21 Thread scabbage
That's what I'm looking for. Thanks :) On Jan 20, 4:32 pm, Russell Keith-Magee wrote: > On Fri, Jan 21, 2011 at 4:40 AM, scabbage wrote: > > How do I include CSRF token in a curl request then? I use curl for > > debugging. Cannot seem to find any info on Google :( >

Re: "CSRF verification failed" when sending simple GET request using curl

2011-01-20 Thread scabbage
How do I include CSRF token in a curl request then? I use curl for debugging. Cannot seem to find any info on Google :( On Jan 20, 5:11 am, Russell Keith-Magee wrote: > On Thu, Jan 20, 2011 at 8:57 PM, Shawn Milochik wrote: > > > On Jan 19, 2011, at 8:01 PM, scabbage wrote: >

Re: "CSRF verification failed" when sending simple GET request using curl

2011-01-19 Thread scabbage
Is there a way to completely disable CSRF handling? Is there an documentation about how to create web services APIs using Django without frontends? Thanks. On Jan 19, 3:26 pm, Andy McKay wrote: > > What if I wanna expose my views as web services without providing a > > UI, how do I make sure cl

Re: "CSRF verification failed" when sending simple GET request using curl

2011-01-19 Thread scabbage
How do I add CSRF token to curl then? What if I wanna expose my views as web services without providing a UI, how do I make sure clients (e.g. Ajax, actionscript, etc) can use it without this CSRF issue? Thanks. On Jan 19, 4:14 am, Jirka Vejrazka wrote: > > However, when I tried this: > > >  

"CSRF verification failed" when sending simple GET request using curl

2011-01-19 Thread scabbage
I'm new to Django. I have installed the latest Django and completed the four-page tutorial. I created a very simple view as below: from django.http import HttpResponse def test(request): return HttpResponse('My name is ' + request.GET['name']) I'm able to navigate to "http: