使用Sendy API订阅 - AJAX POST,状态:已取消

时间:2014-06-16 20:22:22

标签: jquery ajax http post xmlhttprequest

我正在尝试使用Sendy API,使用AJAX POST订阅:

var testList = "hashedstring";
                var email = $j('#email').val();
                var name = $j('#name').val();
                var sendyUrl = "http://newsletters.newstimesarehere.com/subscribe";
                var dataObject = {name: name,email: email,list: testList};

            $j.ajax({
                type: "POST",
                url: sendyUrl,
                data: dataObject,
                success: function () {
                    alert("success");
                }
            });

目前我收到以下错误:

方法:发布 状态:已取消

在网络中:

  Request Headers: CAUTION: provisional headers are shown
            Accept:*/*
            Content-Type:application/x-www-form-urlencoded
            Origin:http://localhost:5
            Referer:http://localhost:5/home.html
            User-Agent:Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36
            Form Dataview sourceview URL encoded.

            Form Data:
            name:Rick Smith
            email:Rick@Smith.com
            list:hashedstring

0 个答案:

没有答案