Skip to main content
Participant
Jun 6, 2012 2:03 PM UTC
Question

send POST data from custom POD to PHP server

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

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Participant
Jul 18, 2012 5:19 PM UTC

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

Translate