Page 1 of 1

http request sender - encodes URL

PostPosted: Tue Apr 06, 2021 2:31 pm
by jgt452
Im trying to send a HTTP request to a camera to chnage the profile using the day indicater but it appeasr to encode the URL which makes it not valid, as per below:

http://192.168.10.20/cgi-bin/configManager.cgi?action=setConfig&VideoInMode[0].Config[0]=1

is changed to in HTTP request sender:

http://192.168.10.20/cgi-bin/configManager.cgi?action=setConfig&VideoInMode%5B0%5D.Config%5B0%5D=1

Any help or suggestions?

thanks

Re: http request sender - encodes URL

PostPosted: Thu Apr 08, 2021 10:47 am
by admin_mary
Hi!

Are you sure you need to use square brackets "[ ]" in your request? Because these characters are not always interpreted by different applications. If you still need them for your query, we recommend you to check if there are ways to change these characters or use alternatives that will be supported by the HTTP encoding to create an HTTP request.
You can read more about reserved characters in this article: ([url]https://tools.ietf.org/html/rfc3986#section-2.2[/url])

You can also use the alternative option. Add the module "Application runner" and create a script, in the settings of the module specify the path to run it. Then you will be able to use the command in its original form, without changes.

Re: http request sender - encodes URL

PostPosted: Thu Apr 22, 2021 8:34 am
by jgt452
i will give that a go thanks