0
我可以使用YQL将数据发布到php页面吗?我可以使用YQL将数据发布到php页面吗?
我可以使用YQL将数据发布到php页面吗?我可以使用YQL将数据发布到php页面吗?
总之,是的。
使用<execute>
块(docs),可以编写JavaScript来发出外部HTTP请求:包括POST。阅读关于这个主题的Christian Heilmann博客文章之一:Using YQL to read HTML from a document that requires POST data。
的JavaScript的一个简单的例子来提出这样的要求可能是:
// Prepare POST request
var url = "http://www.postbin.org/1k2hsu7";
var body = "question=5579467&name=faressoft";
var req = y.rest(url).accept('text/html').post(body);
// Make the request, and get response
var res = req.response;
// Assign to YQL response object
response.object = res.body;
你能吗?我想你可以。 – Wh1T3h4Ck5 2011-04-07 11:05:04
Please downvoters,* explain * your downvote。 – Donovan 2011-04-09 15:08:25