HTTPPost and HTTPPut methods problem

Welcome to the SmartThings Community!
Can you give more details about your Use Case, please?

Groovy SmartApps are part of our legacy platform, so I suggest you get on board with the SmartApp SDK.
As this uses NodeJS, it would be easier to create a POST request. If you have any questions about it, I can help you out.