A "form" tag in HTML just calls a POST call with form parameters. To call POST with parameters call, var params = new Object(); params.username = "user1"; var html = Http.postHTML(url, params);