AI Zone Admin Forum Add your forum

CHATBOT MEETUP CHATBOT MEETUP CHATBOT MEETUP CHATBOT CHATBOT MEETUP CHATBOT MEETUP CHATBOT MEETUP CHATBOT MEETUP

On June 28th, 2017 we're organizing our next Chatbot Meetup in Amsterdam, The Netherlands. Feel free to join!'

Encoding url in chatscript
 
 

outputmacro: ^checkIfProductExists(^param)
  $$product = ^param
  $$url = ^”\“http://localhost:8090/$$product/\”“
  $$user_agent = ^“myemail@hotmail.com User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)”
  $$tmp = ^jsonopen(transient GET $$url “” $$user_agent)
  $$ifExists = $$tmp.ifExists
  $productName = $$tmp.value


$$product can be more than one token for example (Pojo Jojo), How can i encode the url as the string $$url will contain space?

 

 
  login or register to react