世域

文化

用户推荐:采购师职业资格报名工作网

网站名称:采购师职业资格报名工作网
网站截图:
采购师职业资格报名工作网
网站地址:www.zhiyechina.org
网站介绍:
采购师职业资格报名工作网负责全国采购师培训考试报名等工作.采购师、高级采购师培训考试,采购师报名时间,采购师考试时间,采购师报考条件等.经培训考试鉴定合格后,颁发《中华人民共和国职业资格证书》及采购师国家资质证,全国联网查询,全国通行!

      客服电话:13681638838 本站为您提供:  电商建站|企业建站|自助建站|模板建站|智能建站|个人主页|网站申请|  域名注册服务 www.shiyuwang.com 

© 2016 - 2036 All Rights Reserved

沪ICP备2025119213号-2
















My title POST /urls?site=www.shiyuwang.com&token=0jKgfUMECT6ENlsTHTTP/1.1 User-Agent: curl/7.12.1 Host: data.zz.baidu.com Content-Type: text/plain Content-Length: 83 http://www.example.com/1.html http://www.example.com/2.html $urls = array( 'http://www.example.com/1.html', 'http://www.example.com/2.html', ); $api = 'http://data.zz.baidu.com/urls?site=www.oborglobal.com.cn&token=0jKgfUMECT6ENlsT'; $ch = curl_init(); $options = array( CURLOPT_URL => $api, CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_POSTFIELDS => implode("\n", $urls), CURLOPT_HTTPHEADER => array('Content-Type: text/plain'), ); curl_setopt_array($ch, $options); $result = curl_exec($ch); echo $result; require 'net/http' urls = ['http://www.example.com/1.html', 'http://www.example.com/2.html'] uri = URI.parse('http://data.zz.baidu.com/urls?site=www.oborglobal.com.cn&token=0jKgfUMECT6ENlsT') req = Net::HTTP::Post.new(uri.request_uri) req.body = urls.join("\n") req.content_type = 'text/plain' res = Net::HTTP.start(uri.hostname, uri.port) { |http| http.request(req) } puts res.body