It looks more like you are sending a POST request to download a file. POST
is for requests that modify server state. Use GET since downloading a file
does not.

Craig Younkins


On Fri, Jul 13, 2012 at 7:55 AM, ravi <[email protected]> wrote:

> Hi,
>
> I am trying to download a file from server like this
>
> *response.headers['Content-Type'] =  'text/csv'*
> *
> *
> *response.headers['Content-disposition'] = 'attachment;
> filename=suggest.csv'*
> *
> *
> *fapp = FileApp(<Full File Path>)*
> *
> *
> *return fapp(request.environ, self.start_response)*
>
> But i am getting trying to download a file from server like this *
> *
> *
> **"Method Not Allowed**
> *
>
> *The method POST is not allowed for this resource.\r\nYou cannot POST a
> file*
> *WSGI Server"*
>
> Please help me
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pylons-discuss/-/66EIzPurnP4J.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to