toddaustin07 / webrequestor

Web Requestor Edge Driver
Apache License 2.0
21 stars 8 forks source link

Web Request Body case sensitivity issue #9

Closed timttran closed 1 year ago

timttran commented 1 year ago

The body of the Web Request always automatically capitalize the very first character of the JSON value pair. For example, the desired JSON value pair is {"on":true}, it changes it to {"On":true} as soon as it's Saved. This causes problem for the endpoint to resolve the payload when case sensitivity is critical.

I cannot find a way to overcome this problem.

toddaustin07 commented 1 year ago

The app has a bad habit of automatically capitalizing words when shown in the Settings screen. However if you edit the field, you may find that it is not actually capitalized. You fine otherwise, please let me know, since that would be a SmartThings bug.

toddaustin07 commented 1 year ago

One other thought: assuming the body data isn't really being capitalizing (just appearing to be in the app screen), that means there is some OTHER reason why your device is rejecting the HTTP request. Something to be very careful about is to use regular "straight" double-quote characters and not the right and left kind. You may have to be careful to select the right quote character on your mobile device. On iOS, for example, you long press the quote key on the keyboard and then select the specific style.

Also, maybe your device is expecting a header of Content-Type=application/json, which you may need to add to the headers field in the preconfigured request.

timttran commented 1 year ago

thanks Todd....I'll try again.

I did confirm it with another tool (Postman) with the first character cap'ed and got the same error message.

toddaustin07 commented 1 year ago

Hi - Just confirming if you consider this issue resolved?

timttran commented 1 year ago

Yes....please close it. Thanks Todd


From: Todd Austin @.> Sent: Monday, August 14, 2023 3:00 PM To: toddaustin07/webrequestor @.> Cc: timttran @.>; Author @.> Subject: Re: [toddaustin07/webrequestor] Web Request Body case sensitivity issue (Issue #9)

Hi - Just confirming if you consider this issue resolved?

— Reply to this email directly, view it on GitHubhttps://github.com/toddaustin07/webrequestor/issues/9#issuecomment-1677977607, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGA55P3MHNKHH3BNSZCJQB3XVJ7W3ANCNFSM6AAAAAA2VCA6GM. You are receiving this because you authored the thread.Message ID: @.***>