PHP Bug Fix CONTENT_TYPE cause $_POST to be empty

This is a PHP bug, but you can fix it with Zoop so this might have to go into the TIPs and Tricks instead.

When you send a CONTENT_TYPE header to PHP that PHP does not understand, example 'application/x-json', using a HTTP POST request, PHP does not add set $_POST variable. This topic is pretty common when I searched Google and the bug presents itself when every you use any number of different content type headers. The fix is to manually process the php://input stream into $_POST which can be implemented very easily in Zoop.

Another solution would be to define the missing mime type, but that might not always be possible for hosted users and I found it did not fix the issue for myself.

Zoop 1.3 globals.php line 185 or Zoop 1.5 globals.php 218

 
	parse_str(file_get_contents('php://input'),$_POST);
	$GLOBALS['POSTCOPY'] = $_POST;

Updated in repository

Zoop has been updated in the repository with this fix.

jmorant@cloud9l... 23 Nov 2009

These updates on Zoop is

These updates on Zoop is really the kind of upgrades I need. Hope you release a new version this year.
____________________________
ipad case

angel1975 07 Aug 2011

Thanks for the heads up on

Thanks for the heads up on this update.

------------------------
name company

angel1975 06 Aug 2011

PHP framework is good for

PHP framework is good for the work. It gives us much relief in real sense.
ccsp pdf//ccvp questions//certified ethical hacker exam questions//cissp exam questions//exin itil prep//icnd pdf//jncia questions//jncis exam questions//

sadie 22 Nov 2011

tp

Another solution would be to define the missing mime type, but that might not always be possible for hosted users and I found it did not fix the issue for myself.
Mont Blanc Glasses

zoopframe 02 Sep 2011

The new major version has

The new major version has been under development alongside PHP five for several years. This version was originally planned to be released as PHP six as a result of its significant changes, which included plans for full unicode support. However, unicode support took developers much longer to implement than originally thought, and the decision was made in march two thousand ten to move the project to a branch, with features still under development moved to trunk. Thanks.
Regards,
Smoke Assist

jaffa 11 Oct 2011

Another approach for

Another approach for reducing compilation overhead for PHP servers is using an opcode cache. Opcode caches work by caching the compiled form of a PHP script in shared memory to avoid the overhead of parsing and compiling the code every time the script runs. An opcode cache, APC, will be built into an upcoming release of PHP. Thanks a lot.
Regards,
debt solutions

jaffa 22 Dec 2011

yeah right. this could be of

yeah right. this could be of the possible developments that we are going to do about. I loved it. it's awesome. pmp exam training free pmp questions

marygrace 09 Jan 2012

The reason for the removals

The reason for the removals was that register globals had given way to security holes, and the use of magic quotes had an unpredictable nature, and was best avoided. Instead, to escape characters, magic quotes may be replaced with the add slashes function, or more appropriately an escape mechanism. Thanks.
Regards,
Kindle Fire

jaffa 31 Oct 2011

The PHP language was

The PHP language was originally implemented as an interpreter. Several compilers have been developed which decouple the PHP language from the interpreter. Advantages of compilation include better execution speed, static analysis, and improved interoperability with code written in other languages. Thanks.
Regards,
admissions essay

jaffa 01 Dec 2011

PHP is commonly used as the

PHP is commonly used as the P in this bundle alongside Linux, Apache and MySQL, although the P may also refer to some combination of the three. Similar packages are also available for Windows and Mac OS X, then called WAMP and MAMP, with the first letter standing for the respective operating system. Thanks.
Regards,
toronto criminal lawyer

jaffa 20 Jan 2012

PHP source code is compiled

PHP source code is compiled on the fly to an internal format that can be executed by the PHP engine. In order to speed up execution time and not have to compile the PHP source code every time the web page is accessed, PHP scripts can also be deployed in executable format using a PHP compiler. Thanks a lot.
Regards,
Designer Clothes

jaffa 17 Nov 2011

There was an conflict in

There was an conflict in header typing. This information is giving good method to avoid errors. It is very nice. Thanks for your useful site.
website development Kent

kenin 06 Sep 2011

personal statement writers

My favorite tool we created is track session..It uses the profile.log to see exactly what requests were made during a session from start to finish and then we can diagnose any performance problems the user may see
personal statement writers

devil 08 Sep 2011

I really loved reading your

I really loved reading your blog. It was very well authored and easy to understand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he enjoyed it as well!Thanks so much for this!JN0-343// 642-437// 640-461// 650-393// 642-647// 1Y0-A24// 642-617// 640-721// I have not been this thrilled by a blog post for quite some time! You’ve got it, whatever that means in blogging. Anyway, You’re definitely someone that has something to say that people should hear. Keep up the wonderful job. Keep on inspiring the people!

jcarry 28 Sep 2011

re

I'm developing site and i receiving the same error. My problem is I'm using latest version of php.

Unlock Iphone 5.0

sunny002 11 Nov 2011

yeah right I know that this

yeah right I know that this is going to be so cool. It's going to be cool. interior design toronto

marygrace 09 Jan 2012

re

I agreed with what you said.

Goyard Bags

sunny002 26 Nov 2011

N10-004 braindumps || 70-642

N10-004 braindumps || 70-642 braindumps || 640-801 braindumps || 640-822 braindumps || 350-001 braindumps || 70-647 braindumps || PMI-001 braindumps || 220-701 braindumps ||

Its not the case that reader must be completely agreed with author's views about article. So this is what happened with me, anyways its a good effort, I appreciate it. Thanks

Leo123 09 Dec 2011

A good blog always comes-up

A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a good one

job coaching services|

boby 10 Dec 2011

There is an inherent

There is an inherent difference in power between nurses and patients in a clinical setting. A nurse and other health professionals often have more information about treatment options than the patient an unintended power struggle can result. Thanks a lot.
Regards,
personal statement writers

wify 26 Dec 2011

Like many others, this is my

Like many others, this is my first moment posting here. I really love this site and check it quite often.
Havemøbler

saima 26 Dec 2011

Thanks for sharing these

Thanks for sharing these amazing TIPs and Tricks , i think it will really helps and guides many php developers to salve their queries.

php Development mumbai

hari123 02 Jan 2012

So encouraging things are

So encouraging things are provided here,I really happy to read your post punjab college lahore jobs

jonismith 02 Jan 2012

The battery that powers a

The battery that powers a Titan watch, like many other wristwatch brands, can be accessed by removing the back plate. Keep your Titan watch in a very clean area so as not to get dirt or dust in the assembly when changing the watch battery. Thanks a lot.
Regards,
Cuff links

wify 19 Jan 2012

This is my first visit to

This is my first visit to your blog. We are starting a brand new initiative in the same niche as this blog. Your blog provided us with valuable information to work on. You have done a admirable job.send flowers to pakistan

Jeremy007 19 Jan 2012

great

Do you have any idea on how to fixed it? I am a php beginner and I am still learning from it/ I hope that you would explain it here. plumbers in

marygrace 19 Jan 2012

Nice content, I trust this

Nice content, I trust this is a nice blog. Wish to see fresh content next time.

privathospital
Hus i Thailand

saima 20 Jan 2012