AI Zone Admin Forum Add your forum

CX Company, chatbot market leader in the Netherlands since 2005, will speak on the Amsterdam Chatbots Meetup on Wednesday, Oct 18!

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