[Freeswitch-users] [curl_sendfile][unable to get response]
ovoshlook at gmail.com
Fri Oct 6 07:55:37 UTC 2017
First of all - be carefull with file uploading from the dialplan, because
it can block call handling while you did not get response.
Secondly - you also can use some external lua httpclient binding via
require and use it to get response statuses that you need.
On Oct 6, 2017 10:00, "Bilal Abbasi" <bilaln018 at gmail.com> wrote:
> Anybody here that can please help me out?
> On Wed, Oct 4, 2017 at 3:38 PM, Bilal Abbasi <bilaln018 at gmail.com> wrote:
>> Hi Users,
>> I am using lua script to actually call the curl_sendfile, i am able to
>> successfully POST the file on URL, but i am only curious to know the
>> response variables to get the status.
>> Like i used curl previously and there are two variables that are auto set
>> curl_response_data and curl_response_code, i am looking same in the
>> CAn anybody help me in this?
>> P.S: i did tried to send file using curl, but i am not aware that how to
>> do that using the curl -F(--form) option, i can upload a file using
>> commandline linux curl command , but could not mapp the option -F in the
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users