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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement