Thanks for the response. I want the XML data to go as the body of the POST and not as part of the URL. -JP On Wed, Feb 6, 2013 at 4:56 PM, Cal Leeming [Simplicity Media Ltd] < cal.leeming@simplicitymedialtd.co.uk> wrote:
The docs says this;
curl url [headers|json] [get|head|post [url_encode_data]]
So, I assume you'd just do.
curl http://example.com/ post xml=encodedxmlhere
Taken from here; http://wiki.freeswitch.org/wiki/Mod_curl
Hope this helps, apologies if I misunderstood the question
Cal
On Thu, Feb 7, 2013 at 12:44 AM, JP <jaykris@gmail.com> wrote:
How do I POST some XML data to a URL using mod_curl? I want to call it from a Lua script. I cannot use the usual "key=value" format in the URL for my scenario.
Thanks, JP
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org