Forum Discussion
OTP SMS with API (SMS Gateway)
- Jul 15, 2019
Hi cd,
I'm using a hardware device SMSEagle as my SMS gateway with APM.
As Neils rightly said above, there is no need to use an iRule.
I'm using these VPE agents in this particular sequence:
OTP Generate
HTTP Auth (to send the OTP as SMS)
Logon Page (to collect the OTP)
OTP Verify
Please refer to attached screenshots.
I hope it helps.
Even with the "?" it still dosent work:
> Session variable 'session.http.last.errmsg' set to 'Curl perform failed: Couldn't connect to server'
I tried with GET or POST METHOD
Using Postman the curl is working in POST METHOD
>POSThttps://europe.ipx.com/restapi/v1/sms/send
BODY >messageText=test+Message+1&destinationAddress=33611223344&username=xxxxxxxt&password=xxxxx
WITH HEADER> Accept:application/json and Content-Type:application/x-www-form-urlencoded
From F5 it doesn't work
curl -vkX POST https://europe.ipx.com/restapi/v1/sms/send -d 'messageText=REST+test4&destinationAddress=33611223344&username=xxxxxx&password=xxxxxxx'
* About to connect() to europe.ipx.com port 443 (#0)
* Trying 194.165.14.200... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
I tried the curl command from an other linux server and it's working but not from the F5 :/
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com