I need to launch tests using the RestAPI and specify the IP to test. I’m trying to pass the script in the URL but I do smething wrong. ¿how can I pass two lines script as script parameter in the URL?
How can I pass this as script argument?
thanks in advance.
You need to urlencode it. For example, this script:
setdns www.aol.com 126.96.36.199
would be passed as:
If you use POST you would form-encode it.
I usually use http://meyerweb.com/eric/tools/dencoder/ to do the urlencoding if I’m doing it manually. In code whatever platform you are using to send the API calls should have support for url-encoding parameters.