O.K, i solved the issue, first i have to mention that this app is using
CakePHP 1.1 and NOT 1.2
The issue that was causing all this headache was because there were some
warnings that have been displayed while 2 lines of code being executed in
app_controller, though debug level is 0 but still those warnings and notices
being displayed and i really donno how or why, anyway, i have put the "shut
up => @" sign  before those 2 lines of code and everything went like a charm
but i do really suspect having a bug where debug level was 0 and still there
were warnings and notices instead of having a clean server response.

Thanks every body

On Wed, Jul 22, 2009 at 10:36 PM, Ma'moon <phpir...@gmail.com> wrote:

> Yes, debug level has been set to 0
>
>
> On Wed, Jul 22, 2009 at 9:35 PM, lapinski <lapinski....@gmail.com> wrote:
>
>>
>>
>>
>> Did you turn debug mode off?
>>
>>
>>
>> Ma'moon Al-Akash wrote:
>> >
>> > 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: Accept-Encoding,User-Agent
>> > Content-Type: text/html
>> > Connection: Keep-Alive
>> > Set-Cookie: userCountry=JO; expires=Thu, 17-Dec-2020 19:00:04 GMT;
>> path=/
>> > Set-Cookie: MKTID_copy=deleted; expires=Mon, 21-Jul-2008 20:00:03 GMT;
>> > path=/; domain=video.maktoob.com
>> >
>> > On Tue, Jul 21, 2009 at 6:18 PM, Piotr Kilczuk <kilc...@gmail.com>
>> wrote:
>> >
>> >>
>> >> 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 my
>> 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 you paste the complete response (all server headers)?
>> >>
>> >>
>> >> Regards,
>> >> Piotr
>> >>
>> >> >
>> >>
>> >
>> >
>> > --
>> > http://phpirate.net
>> >
>> > >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/404-Header-tp24587977p24612078.html
>> Sent from the CakePHP mailing list archive at Nabble.com.
>>
>>
>> >>
>>
>
>
> --
> http://phpirate.net
>



-- 
http://phpirate.net

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to