AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Encoding url in chatscript
 
 

outputmacro: ^checkIfProductExists(^param)
  $$product = ^param
  $$url = ^”\“http://localhost:8090/$$product/\”“
  $$user_agent = ^“[email protected] 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