57 Commits

Author SHA1 Message Date
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
Jeff Lenk
dd242f3ba6 FS-6346 2014-03-20 18:32:19 -05:00
Travis Cross
1470622292 Require libcurl as a system dependency
This purges libcurl from our tree and requires it to be present on the
system for building and running FreeSWITCH.

FS-353
2014-03-20 21:15:29 +00:00
Travis Cross
c993962d0b Update some modules to use CPPFLAGS
These modules use curl and we'll be adding in some bits to the
CPPFLAGS.
2014-03-20 21:09:46 +00:00
Travis Cross
e6ec9b3c61 Add automake subdir-options for modules
The automake project is apparently changing behavior in their next
major version and warning everyone who relies on subdir-options to add
it explicitly.
2014-03-08 00:32:02 +00:00
Michael Jerris
bcd9f49fbe move applications to use automake 2014-03-07 18:36:12 -05: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
Jeff Lenk
dc2c11f13f FS-4768 initial add of vs2012 build support 2012-12-29 14:57:15 -06:00
Ken Rice
c5554eb939 Copyright date update. 2012-04-18 11:52:02 -05:00
Jeff Lenk
6aa492d034 vs2010 add some ssl support to curl - test 2012-02-29 08:50:00 -06: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
a87429ac87 Add initial support for VS2010 2010-06-28 15:49:19 -05:00
Jeff Lenk
507d26e37b fix wrong path
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17077 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-23 16:12:11 +00:00
Rupa Schomaker
68a7622647 bump json lib to 0.9
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17020 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-17 02:35:03 +00: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
869948d333 theoretically add support for VS++
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16883 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-03 19:04:10 +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
Michael Jerris
d2cf7f862a fix --srcdir builds for modules that download libraries mod_flite mod_pocketsphinx mod_celt mod_radius_cdr mod_soundtouch mod_memcache mod_curl mod_xml_ldap mod_shout mod_ldap (FSBUILD-211)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15917 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-11 21:20:02 +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
a977524425 more --srcdir fixes (FSBUILD-211)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15849 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-08 20:31:12 +00:00
Michael Jerris
ae05a0c5de cleanup makefiles
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15720 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-30 15:21:04 +00:00
Michael Jerris
7c255937c3 pass configure args/vars to sub-configure commands run from module makefiles
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15718 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-30 14:23:09 +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