Should this code not work? I actually have no idea how to use this HTTP request thing.
<script language="javascript">
function HTTPCALL()
{
var request = HTTP.newRequest();
request.open("POST", "https://workplace.intuit.com/db/main", false);
request.setRequestHeader("Content-Type", "application/xml");
request.setRequestHeader("QUICKBASE-ACTION", "API_GetUserInfo");
request.send(
'<qdbapi>
<apptoken>c4abnsde36pse7hzurwvjjb4m</apptoken>
<email>[email protected]</email>
</qdbapi>'
);
}
</script>
For me, nothing happens. I tried putting an alert anywhere in the function and it never shows. Help!