Re: [WebDNA] Send URL Get without waiting for response
This WebDNA talk-list message is from 2014
It keeps the original formatting.
numero = 111463
interpreted = N
texte = You are not way off base.. that logic sounds good to me=85 something =like below (you can take out the auth if the API doesn=92t call for it):[TCPConnect host=3D[host]&ssl=3DT&port=3D443][!] [/!][TCPSend]GET =/sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is+=a+test HTTP/1.0[UnURL]%0D%0A[/UnURL][!] [/!]Authorization: Basic [Encrypt =method=3Dbase64][user]:[pass][/Encrypt][UnURL]%0D%0A[/UnURL][!] [/!]Host: [host][UnURL]%0D%0A%0D%0A[/UnURL][/TCPSend][!][/!][/TCPConnect]No need to use curl, although you could. Regarding spawn, sounds fine.. =just remember that information to the spawn context is limited.. see the =docs for Spawn.=20DonovanOn Jul 17, 2014, at 5:46 AM, Terry Nair
wrote:> Hi all,> =20> Could anyone please give me a heads up on how to do this =85..> =20> Send a http url request with string value pair to an API landing page =without requiring or displaying a response from the API. Basically, a =user completes a registration form (WebDNA) and when submitting, gets to =our response page (WebDNA) which displays an entry box for the user to =enter a One-Time-Password (OTP). On this very same response page, a =separate call is made out to the API which is a SMS gateway provider =that sends the OTP to the user=92s mobile phone.> =20> The url to the API looks like this =85.> =20> =http://192.123.000.000/sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr==3DNTUC&msg=3DThis+is+a+test> =20> As you can see, the parameters are id, pw, dnr, snr and msg. I believe =that I should be using TCPConnect and TCPSend. Also, I think I should be =putting the TCPConnect tag inside a SPAWN tag so that I do not see the =response or have to wait for it. Never worked on TCPConnect tags before =so any help crafting what the code should be for the above would be most =appreciated.> =20> If I am way off base with the approach, please do let me know if there =is a much simpler way to this before I start experimenting with my =approach. Hope I am making sense here and thanks for the assistance =rendered guys n gals.> =20> Cheers Terry Nair> =20> --------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list . To =unsubscribe, E-mail to: archives: =http://mail.webdna.us/list/talk@webdna.us Bug =Reporting:support@webdna.us
Associated Messages, from the most recent to the oldest:
You are not way off base.. that logic sounds good to me=85 something =like below (you can take out the auth if the API doesn=92t call for it):[TCPConnect host=3D[host]&ssl=3DT&port=3D443][!] [/!][tcpsend]GET =/sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr=3DNTUC&msg=3DThis+is+=a+test HTTP/1.0[unurl]%0D%0A[/UnURL][!] [/!]Authorization: Basic [Encrypt =method=3Dbase64][user]:[pass][/Encrypt][unurl]%0D%0A[/UnURL][!] [/!]Host: [host][unurl]%0D%0A%0D%0A[/UnURL][/TCPSend][!][/!][/TCPConnect]No need to use curl, although you could. Regarding spawn, sounds fine.. =just remember that information to the spawn context is limited.. see the =docs for Spawn.=20DonovanOn Jul 17, 2014, at 5:46 AM, Terry Nair wrote:> Hi all,> =20> Could anyone please give me a heads up on how to do this =85..> =20> Send a http url request with string value pair to an API landing page =without requiring or displaying a response from the API. Basically, a =user completes a registration form (WebDNA) and when submitting, gets to =our response page (WebDNA) which displays an entry box for the user to =enter a One-Time-Password (OTP). On this very same response page, a =separate call is made out to the API which is a SMS gateway provider =that sends the OTP to the user=92s mobile phone.> =20> The url to the API looks like this =85.> =20> =http://192.123.000.000/sms.php?id=3DXXXX&pw=3DXXXX&dnr=3D%2B6593365219&snr==3DNTUC&msg=3DThis+is+a+test> =20> As you can see, the parameters are id, pw, dnr, snr and msg. I believe =that I should be using TCPConnect and TCPSend. Also, I think I should be =putting the TCPConnect tag inside a SPAWN tag so that I do not see the =response or have to wait for it. Never worked on TCPConnect tags before =so any help crafting what the code should be for the above would be most =appreciated.> =20> If I am way off base with the approach, please do let me know if there =is a much simpler way to this before I start experimenting with my =approach. Hope I am making sense here and thanks for the assistance =rendered guys n gals.> =20> Cheers Terry Nair> =20> --------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list . To =unsubscribe, E-mail to: archives: =http://mail.webdna.us/list/talk@webdna.us Bug =Reporting:support@webdna.us
Donovan Brooke
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Grepping a csv (2003)
fieldsumm quandary (2001)
Triggers Suck! (2000)
Sort Order on a page search (1997)
PCS Frames (1997)
Dummy Credit Card Number for debug? (1997)
[OT] MySQL Expert Needed (2004)
webcat page crashes MSIE 5 on mac (2000)
DrWatson Error! (1999)
Emailer Q (2002)
MacAuthorize order data fields WAS:How To question... (1997)
NT considerations (1997)
Making Thumbnail Graphics (1997)
shipping calculations, lookup command (1997)
need some help with a loop (1999)
Separate SSL Server (1997)
[OT] Disable/enable field (2003)
format_to_days on NT (1997)
ShowIf variables (1997)
Major bug report on rootbeer (1997)