New to Ruby / Sketchup
-
Hi There,
I am having a problem encoding a URL in Sketchup's Ruby. I am trying to communicate with a web enabled device that accepts commands through simple url get. I can get the device talking with sketch up using simple commands but with some of the more complex commands the device is using non standard web characters and I am having trouble with that.
For example I want to send to a url http://192.168.1.1/exe.cgi?cmd=f1a{#255,#255,#255}
I have everything looking good in ASCII but when it passes to the url it stops at the first {
I have tried some of the ruby encoding options but it doesn't seem like sketchup supports anything beyond simple string and integer commands.
Any suggestions would be greatly appreciated.
Thanks,
-
You must URL encode the data you put into URLs. Not all charactered are allowed.
Advertisement