Copy link to clipboard
Copied
Hi all,
I tried to send data from custom POD to PHP server with POST method. I used HTTPService component and URLLoader, but nothing happend. All attempts failed, HTTPService return "fault" and URLLoader return "0" that means I can't send data to the server.
I'm googling around during few hours... please give me some advice, how I can send data from custom POD to PHP server.
Thanks
Copy link to clipboard
Copied
Figured it out, hope it will help someone
A bit tricky but it works fine, now I can send and retrive data from PHP server.
Add .htacces file in folder where deployed PHP request handler and modify it, see below:
RewriteEngine on
RewriteBase /foldername
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ filename.php?_route_=$1 [L,QSA]
Thanks