Re: Sending a 404 header from the controller

2014-07-14 Thread euromark
+1 for correcting it here as reference for future findings Am Montag, 14. Juli 2014 11:38:47 UTC+2 schrieb Alex Bovey: > > On Fri, Jul 11, 2014 at 2:31 PM, Alex Bovey > wrote: > > > > Hello all, > > > > I would like one of my controller methods to be able to send a 404 Not > Found header, bu

Re: Sending a 404 header from the controller

2014-07-14 Thread Alex Bovey
On Fri, Jul 11, 2014 at 2:31 PM, Alex Bovey wrote: > > Hello all, > > I would like one of my controller methods to be able to send a 404 Not Found > header, but still render the view as normal. I've tried both of the > following at the beginning of my controller method, but Cake is still > ret

Re: Sending a 404 header from the controller

2014-07-11 Thread Alex Bovey
Thank you Leandro - I can't see where that outputs a 404 header though? Alex On Fri, Jul 11, 2014 at 3:09 PM, Leandro Machado Pereira < llperei...@gmail.com> wrote: > You should see this http://pastebin.com/zNB6SFg7 > > > 2014-07-11 10:31 GMT-03:00 Alex Bovey : > &

Re: Sending a 404 header from the controller

2014-07-11 Thread Leandro Machado Pereira
You should see this http://pastebin.com/zNB6SFg7 2014-07-11 10:31 GMT-03:00 Alex Bovey : > Hello all, > > I would like one of my controller methods to be able to send a 404 Not > Found header, but still render the view as normal. I've tried both of the > following at the beginning of my control

Sending a 404 header from the controller

2014-07-11 Thread Alex Bovey
Hello all, I would like one of my controller methods to be able to send a 404 Not Found header, but still render the view as normal. I've tried both of the following at the beginning of my controller method, but Cake is still returning a 200 OK header: $this->response->header('HTTP/1.1 404 Not F

Re: 404 Header

2009-07-23 Thread Ma'moon
gt;> box >> >> > it keeps returning ( 302 Page Found ) instead of ( 404 Page Not >> Found) >> >> , >> >> > anyone faced something like this, and if any, would you please >> explain >> >> how >> >> > you solve it

Re: 404 Header

2009-07-22 Thread Ma'moon
; debian > >> box > >> > it keeps returning ( 302 Page Found ) instead of ( 404 Page Not Found) > >> , > >> > anyone faced something like this, and if any, would you please explain > >> how > >> > you solve it? > >> > >> Can

Re: 404 Header

2009-07-22 Thread lapinski
bian >> box >> > it keeps returning ( 302 Page Found ) instead of ( 404 Page Not Found) >> , >> > anyone faced something like this, and if any, would you please explain >> how >> > you solve it? >> >> Can you paste the complete response (all

Re: 404 Header

2009-07-21 Thread Ma'moon
Sure ... HTTP/1.1 302 Found Date: Tue, 21 Jul 2009 20:00:04 GMT Server: Apache X-Powered-By: PHP/5.2.6 Location: http://video.maktoob.com/?url=sfgsd Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform, max-age=0, must-revalidate Expires: Tue, 21 Jul 2009 20:00:04 GMT Vary: Ac

Re: 404 Header

2009-07-21 Thread Piotr Kilczuk
Hello, > i have a problem with my CakePHP app where the client needs me to return a > valid 404 page together with a valid 404 http header incase of "page not > found", i have handled the 404 page through app_error but the problem is > when i execute ( curl -I http://www.example.com/sdfsdfas ) on

404 Header

2009-07-21 Thread Ma'moon
Hello Guys, i have a problem with my CakePHP app where the client needs me to return a valid 404 page together with a valid 404 http header incase of "page not found", i have handled the 404 page through app_error but the problem is when i execute ( curl -I http://www.example.com/sdfsdfas ) on my d