Hi Giri, you are amazing! I had no idea that Wix had http-functions or how to use them.
I had pretty much given up on making this work after 3 days working on it. After your reply, I used the code you provided and finally got it working exactly like I wanted.
Thank you so much for taking the time to write such a detailed answer and for the clear examples and instructions! Beyond grateful for your help.