Description: A calc file is used as a client for a PHP Web Server, using UCB to send POST requests. The same file is used by several people. Only for some of them, the request send is a HTTP PUT instead of POST. For instance with LibreOffice 7.3.7.2 under Ubuntu 22.04.4. As I have no control about the users's versions, is there a way to forbid PUT requests in the UCP, because PHP doesn't fill its $_POST array with PUT data. Steps to Reproduce: 1.Open the attached file Test_HTTP_POST 2.Click the button "Tester l'envoi POST" 3.The answer is displayed in a message box Actual Results: If the request is a PUT, the answer is Answer : 0 variables in $_POST. Request PUT with data : A=varA&B=VarB Expected Results: If the request is a POST, the answer is Answer : 2 variables in $_POST. Request POST with data : A=varA&B=VarB Reproducible: Always User Profile Reset: No Additional Info: none
Created attachment 195321 [details] Calc file with the macro module HTTPmodule
It was changed in version 7.6, in commit 261b1237532f431963358a7b4ac5fd1ad6e5d223, which actually addressed the problem that POST was going GET. So to use POST, you need to use version 7.6 and later. For Ubuntu, you may consider the Packaging team PPA: https://launchpad.net/~libreoffice/+archive/ubuntu/ppa