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.=20 Donovan On 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:

    
  1. Re: [WebDNA] Send URL Get without waiting for response (Donovan Brooke 2014)
  2. Re: [WebDNA] Send URL Get without waiting for response (Dan Strong 2014)
  3. RE: [WebDNA] Send URL Get without waiting for response (Marc Thompson 2014)
  4. RE: [WebDNA] Send URL Get without waiting for response (Marc Thompson 2014)
  5. [WebDNA] Send URL Get without waiting for response ("Terry Nair" 2014)
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.=20 Donovan On 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:

purchase.log file (1997) [WebDNA] WebDNA Crashing or Not **YES** (2008) Problems with shopping cart (1997) Preventing Merchant Settling ? (1997) WebCatalog f2 Installation (1997) Re:Emailer and encryption (1997) Purchased cart being overwritten - still !?? (1997) Authenticate (1997) HELP-1!!! (1998) [random] only for 1-100??? (1997) weird happenings (1997) Sort Order on a page search (1997) webmerchant/ Mac Auth. and CC refunds (1998) Add message to Order (1997) Adding multiple items to Cart (1999) Sort Order on a page search (1997) StoreBuilder template prob? (2000) wierd [cart] action! (1997) question: back button prevention (1997) restart needed???? (1997)