Sergey Safarov
df1ab07ca4
FS-9924: Removed extra space in source files
2017-02-09 23:59:49 -05:00
Anthony Minessale
f8b19b7485
FS-8190 #resolve [When using nixevent, freeswitch stops sending us certain custom event that were NOT part of the nixevent command]
2015-09-21 18:00:32 -05:00
Yossi Neiman
8ca2cfa574
FS-7429: fix to output proper json
2015-06-30 12:45:01 -05:00
Yossi Neiman
5303101df0
FS-7340: Converting the json handling to use the types and functions in switch_json.h .
...
FS-7340: mod_curl: Missed a free.
FS-7340: mod_curl: Saved a few lines of code, added a check for successful allocation of cJSON structures.
2015-03-04 12:24:04 -06:00
Michael Jerris
250234da76
FS-5800: [mod_curl] add support for additional curl auth methods
2014-11-17 11:01:35 -05:00
Travis Cross
f1df8d6096
Allow setting CURL timeout from curl API command
...
Previously the `timeout` option to the curl API command set only
`CURLOPT_CONNECTTIMEOUT` -- the maximum amount of time that curl will
wait to connect to the server. If the server accepted the connection
but then never replied, curl would wait essentially forever. There
was no way to set `CURLOPT_TIMEOUT` -- the maximum amount of time the
entire request operation is allowed to take.
With this change, the `timeout` option sets `CURLOPT_TIMEOUT`. We've
earlier added a `connect-timeout` option to set
`CURLOPT_CONNECTTIMEOUT`.
This is a change to existing behavior. However, it's likely that this
is what people expected it to do all along. The curl application
call, for example, accepts both `curl_connect_timeout` and
`curl_timeout` channel variables, with the latter setting
`CURLOPT_TIMEOUT`.
If people really were relying on this odd behavior, we'll rename the
option with the new behavior to something else and come up with a
transition plan.
2014-11-16 19:31:00 +00:00
Travis Cross
1ee325df48
Add connect-timeout
option for curl API command
...
This option sets the maximum number of seconds that curl will wait to
connect with the server.
Right now this is a synonym for the `timeout` option.
2014-11-16 19:31:00 +00:00
Travis Cross
b2f59dd200
Add warning when using HTTPS with mod_curl
...
mod_curl currently does not verify the authenticity of the peer's
certificate, and does not verify whether the common name on the
certificate matches the server. This makes mod_curl initiated TLS
connections completely insecure. We should fix this, but until we do,
we'll warn people that it's not doing what they may think it is.
ref: http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html
ref: http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html
2014-08-21 22:24:04 +00:00
Travis Cross
f2ca3c5211
Decode params to curl_sendfile
...
`curl_sendfile` generates a multipart message with Content-Type:
multipart/form-data with no separate Content-Type headers in the parts
for each non-file argument. These parts therefore default to
text/plain. However, prior to this commit, we were putting the URL
encoded POST data into these parts, which is not correct. We should
be putting raw text into the parts.
With this commit, we urldecode each argument key and value before
composing the multipart message.
See:
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2
2014-08-20 10:37:24 +00:00
Travis Cross
5a7144c44a
Add DELETE request support to mod_curl
2014-07-31 04:07:36 +00:00
Travis Cross
c17d58b856
Refactor the curl PUT read callback
2014-07-04 07:47:04 +00:00
Travis Cross
2fea35282f
Advance the data_stream data pointer
2014-07-04 07:43:59 +00:00
Travis Cross
a84b76be2a
Add PUT support to mod_curl curl
api and app
...
With both the `curl` api command and application, you can now ask for
data to be PUT where previously it could only be sent via POST.
2014-07-04 07:40:13 +00:00
Michael Jerris
529099f15c
silence incorrect warnings about null pointer derference and remove unused code
2014-04-29 14:34:49 -04:00
Anthony Minessale
6ef3f7bde7
add timeout <seconds> to mod_curl api call
2014-03-03 22:58:45 +05:00
Ken Rice
6e7d5d0897
update copyright header for 2014
2014-02-12 12:08:56 -06:00
Peter Olsson
93696934b2
Silence more compiler warnings
2014-01-23 12:25:15 +01:00
Seven Du
92d945e893
add back the log line deleted by accident
2013-07-30 22:12:58 +08:00
Seven Du
b5e1725d52
remove debug
2013-07-30 18:02:42 +08:00
Seven Du
d8a02dc244
add timeout options to mod_curl
2013-07-30 16:36:00 +08:00
Nathan Neulinger
32adc789f6
make noexpandtab explicit in all vim modelines other than xml files
2013-06-25 11:50:17 -05:00
Jeff Lenk
a7577d7ee1
FS-5048 trivial build for windows
2013-02-28 14:30:56 -06:00
Raymond Chandler
04a2a88c98
FS-5048 --resolve refactored patch applied with author header
2013-02-28 14:32:50 -05:00
William King
14ce24950e
FS-4714: remove the DEBUG to DEBUG1 change
2013-02-25 17:45:10 -08:00
Raymond Chandler
660fd495fc
4714 --resolve add decode
2013-02-15 14:47:49 -05:00
Raymond Chandler
cd7d1efc2a
FS-4714 --resolve patch applied
2013-02-13 15:08:19 -05:00
Ken Rice
c5554eb939
Copyright date update.
2012-04-18 11:52:02 -05:00
Anthony Minessale
e794a6db21
FS-2936 stage 2 please test ASAP
2011-11-29 15:35:36 -06:00
Anthony Minessale
e58ed35d17
FS-2936 stage 1
2011-11-29 11:13:11 -06:00
Anthony Minessale
00b53a91ea
FS-3277 --resolve There are actually really only 2 places where it needs the real hostname, the hostname command and the header on the events. I changed everything to the switchname because there were some more sql stmts etc in the core.
2011-04-29 10:24:50 -05:00
Brian West
3734f4cd44
bump copyright date and fix some email and typos from diego.
2011-01-05 10:09:04 -06:00
Rupa Schomaker
c6a4ddd0ba
FSMOD-69 - mod_curl - use method=post when post requested
2010-09-01 07:00:33 -05:00
Jeff Lenk
745ef92c60
add initial build support to solution for FSCOMM, mod_curl, libjson. Not enabled in the solution build yet.
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16887 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-03 21:28:51 +00:00
Rupa Schomaker
4a9fc2c731
FSMOD-38 - support redirection
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16881 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-03 17:43:28 +00:00
Anthony Minessale
886e1ddb4d
run indent on the whole tree and update copyright dates in prep for 1.0.5
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16579 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-06 03:38:24 +00:00
Rupa Schomaker
1cbfa9002c
add nosignal
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15998 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-18 20:16:37 +00:00
Brian West
21e3bb970a
if space
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15893 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-11 01:20:26 +00:00
Michael Jerris
0f9fee1f16
don't include response code in response data as it has its own var (MODAPP-369)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15591 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-21 05:41:14 +00:00
Anthony Minessale
b6b7dd26d8
fix missing parens
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15384 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-06 15:58:08 +00:00
Anthony Minessale
df7637f687
change switch_strlen_zero to zstr
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15211 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-10-23 16:03:42 +00:00
Anthony Minessale
b869290bae
MODAPP-337
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14922 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-18 22:55:33 +00:00
Mathieu Rene
5acb8ad899
Per-call logging, part two
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14510 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-13 21:24:51 +00:00
Rupa Schomaker
7b29de0752
MODAPP-307 - support http post in mod_curl
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14348 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-24 17:06:22 +00:00
Rupa Schomaker
8f19976a88
don't print response code for plain output, if you want
...
status use headers or json
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14114 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-02 15:33:36 +00:00
Rupa Schomaker
8e6dc2967b
another crash (intermittent) if called with no args
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14113 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-02 15:29:25 +00:00
Rupa Schomaker
56d63b1097
fix usage
...
fix null free crash when called w/out arguments
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14112 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-02 15:23:54 +00:00
Rupa Schomaker
d2120b694c
add json support
...
fix dialplan app
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14096 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-01 22:26:59 +00:00
Rupa Schomaker
840acb0eef
initial commit of mod_http, still needs json and a valgrind run
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14092 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-01 20:03:48 +00:00