Call webscript API from HTML

7 views
Skip to first unread message

surbhee sehgal

unread,
May 16, 2017, 1:12:19 AM5/16/17
to Webscript.io
Hi,

I am not able to call a webscript that I created from the HTML file. This is my HTML code :

<!doctype html>
<head> </head>
<body>
<form action="https://www.webscript.io/script/ss/text-me-fb" method="post">
<input type="text" name="Name"  value="Merchant Name"/> <br/>
<button type="submit">Sign Up</button>
</form>
</body>

The webscript works fine; but when I try calling it from HTML file, I get the below error - 

Bad Request

The browser (or proxy) sent a request that this server could not understand.


Do I need to authenticate? If yes, how do I pass the credentials from HTML file. Appreciate help on this!

Steve Marx

unread,
May 16, 2017, 1:15:20 AM5/16/17
to surbhee sehgal, Webscript.io
That's not the URL for your script... that's the URL for the page on webscript.io where you can edit the script.

Your script URL appears above the code for your script. It should be something like https://ss.webscript.io/text-me-fb.


--
You received this message because you are subscribed to the Google Groups "Webscript.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webscriptio+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

surbhee sehgal

unread,
May 16, 2017, 1:34:24 AM5/16/17
to Webscript.io, surbhe...@gmail.com
I tried changing the url; but the request still does not go through. There is a new error message.

This site can’t be reached

ss’s server DNS address could not be found.


Do I need to use authentication?
To unsubscribe from this group and stop receiving emails from it, send an email to webscriptio...@googlegroups.com.

Steve Marx

unread,
May 16, 2017, 1:35:47 AM5/16/17
to surbhee sehgal, Webscript.io
What URL did you use this time? It should be "https://ss.webscript.io/text-me-fb".

(And no, you don't need to use any authentication unless you wrote code in your script to check authentication.)


To unsubscribe from this group and stop receiving emails from it, send an email to webscriptio+unsubscribe@googlegroups.com.

surbhee sehgal

unread,
May 16, 2017, 1:40:51 AM5/16/17
to Webscript.io, surbhe...@gmail.com
Thanks a ton! It worked this time. 
Reply all
Reply to author
Forward
0 new messages