4 ms·
Thanks. I don't use JS, just Go with HTML templates. I populate the form now with {{ .code }} from the URL so the user does not have to copy/paste the code. But
by _wldu 5y ago
Thanks. I don't use JS, just Go with HTML templates. I populate the form now with {{ .code }} from the URL so the user does not have to copy/paste the code. But they do have to click 'Submit' to post the form. I think this is a reasonable approach that most users are OK with.
- weird-eye-issue 5y agoYou could add a single line of JS to have it auto submitted as well
- _wldu 5y agoWouldn't that be equivalent to just doing a GET?
- SamBam 5y agoNo, because if you curl the original url the POST for the second url won't be triggered, but if you navigate your browser to the url, the browser will trigger the POST.
- weird-eye-issue 5y agoNo... Because you have to do a GET, execute JavaScript, and make a POST request. Bots don't execute JavaScript and no well-behaved bots are going to make POST requests