gitLab web hooks do not push post request
Created by: tonglesu
I set an url (http://xxxxx.com/xx.php)for web hooks when new code is pushed,but It do not send a post request,I get the empty request body. see my php code:
file_put_contents('./a.txt', $_SERVER);
file_put_contents('./b.txt', file_get_contents('php://input');
file_put_contents('./c.txt',$_REQUEST);
some header in a.txt,but b.txt and c.txt is empty. When I change the url to http://xxxx.com/xx.php?a=b ,the I get the 'b' in c.txt. Who can tell me why?