Access http response code?
6 posts
• Page 1 of 1
Access http response code?
Since Phalanger isn't php5.4 compat yet I was wondering if anybody knew how to read the http status code set by previous calls to the header function.
Basically I need a phalanger version of the php function "http_response_code" which was introduced in php5.4.
Thanks.
Basically I need a phalanger version of the php function "http_response_code" which was introduced in php5.4.
Thanks.
- johnc
- Posts: 45
- Joined: March 24th, 2013, 9:17 pm
Re: Access http response code?
Hi,
http_response_code() is simple function and can be added into the next update. Otherwise, in Phalanger, you can add reference to System.Web.dll and read \System\Web\HttpContext::$Current->Response->StatusCode
Thanks,
http_response_code() is simple function and can be added into the next update. Otherwise, in Phalanger, you can add reference to System.Web.dll and read \System\Web\HttpContext::$Current->Response->StatusCode
Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Access http response code?
Thanks, I'll give it a try =)
- johnc
- Posts: 45
- Joined: March 24th, 2013, 9:17 pm
Re: Access http response code?
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Access http response code?
Great, thanks for adding that. I installed the most recent phalanger tools a couple of days ago, loving the experience so far =)
- johnc
- Posts: 45
- Joined: March 24th, 2013, 9:17 pm
Re: Access http response code?
I'm glad you like it.
Please give us know if you would have any more feedback or suggestion.
Thanks,
Please give us know if you would have any more feedback or suggestion.
Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 17 guests