All installation and configuration problems and questions
Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
by SPAMSAM » Mon Jul 04, 2022 9:51 am
Relatively version agnostic question.
When using libraries line curl, wget, python to make API calls is the GET or POST method preferred?
-
SPAMSAM
-
- Posts: 70
- Joined: Tue Jan 17, 2017 4:00 am
by mflorell » Mon Jul 04, 2022 1:09 pm
Either is fine as far as VICIdial is concerned. It's often easier to program as a GET, but using POST allows larger query strings and is more secure(if you are going outside of a local network).
-
mflorell
- Site Admin
-
- Posts: 18384
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by williamconley » Tue Jul 05, 2022 4:37 pm
SPAMSAM wrote:Relatively version agnostic question.
When using libraries line curl, wget, python to make API calls is the GET or POST method preferred?
For a bit more depth: Example from the non-agent api:
- Code: Select all
if (isset($_GET["caller_id_name"])) {$caller_id_name=$_GET["caller_id_name"];}
elseif (isset($_POST["caller_id_name"])) {$caller_id_name=$_POST["caller_id_name"];}
The system specifically checks for and captures GET first and POST second. Since using both is ... never done, either is fine.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
-
williamconley
-
- Posts: 20256
- Joined: Wed Oct 31, 2007 4:17 pm
- Location: Davenport, FL (By Disney!)
-
Return to Support
Who is online
Users browsing this forum: Google [Bot] and 73 guests