- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2018
04:24 AM
03-14-2018
04:24 AM
Post request to an external server
Hello everyone,
I need to send some json data to an external server. I have tried to use PHP cURL or stream_context_create with file_get_contents (like in a normal php script), but they didn't work. So I have tried with different method (like Zend_Http_Client class) but without result. Anyone know how can I do it?
Thanks
Labels:
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2018
07:47 PM
03-15-2018
07:47 PM
Re: Post request to an external server
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2018
04:58 AM
03-16-2018
04:58 AM
Re: Post request to an external server
The endpoint need data json encoded. The url for the POST call is
http://server
ort/TABLE_NAME
http://server

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2018
04:40 PM
03-22-2018
04:40 PM
Re: Post request to an external server
Hi @Magenz,
Your module could perform a CURL call and set the data. It will depend on how you want to build your module but at the end something like that should happen.
(my 2 cents)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2018
06:25 AM
03-26-2018
06:25 AM
Re: Post request to an external server
Hi,
problem solved. My hosting blocked request with firewall
problem solved. My hosting blocked request with firewall