<legend id='YDgjh'><style id='YDgjh'><dir id='YDgjh'><q id='YDgjh'></q></dir></style></legend>

      <bdo id='YDgjh'></bdo><ul id='YDgjh'></ul>
    <tfoot id='YDgjh'></tfoot>

      <i id='YDgjh'><tr id='YDgjh'><dt id='YDgjh'><q id='YDgjh'><span id='YDgjh'><b id='YDgjh'><form id='YDgjh'><ins id='YDgjh'></ins><ul id='YDgjh'></ul><sub id='YDgjh'></sub></form><legend id='YDgjh'></legend><bdo id='YDgjh'><pre id='YDgjh'><center id='YDgjh'></center></pre></bdo></b><th id='YDgjh'></th></span></q></dt></tr></i><div id='YDgjh'><tfoot id='YDgjh'></tfoot><dl id='YDgjh'><fieldset id='YDgjh'></fieldset></dl></div>

      <small id='YDgjh'></small><noframes id='YDgjh'>

      1. 转换为 PHP REST CURL POST

        Convert to PHP REST CURL POST(转换为 PHP REST CURL POST)

            <i id='1A4Ve'><tr id='1A4Ve'><dt id='1A4Ve'><q id='1A4Ve'><span id='1A4Ve'><b id='1A4Ve'><form id='1A4Ve'><ins id='1A4Ve'></ins><ul id='1A4Ve'></ul><sub id='1A4Ve'></sub></form><legend id='1A4Ve'></legend><bdo id='1A4Ve'><pre id='1A4Ve'><center id='1A4Ve'></center></pre></bdo></b><th id='1A4Ve'></th></span></q></dt></tr></i><div id='1A4Ve'><tfoot id='1A4Ve'></tfoot><dl id='1A4Ve'><fieldset id='1A4Ve'></fieldset></dl></div>
              <bdo id='1A4Ve'></bdo><ul id='1A4Ve'></ul>

              <small id='1A4Ve'></small><noframes id='1A4Ve'>

                <tbody id='1A4Ve'></tbody>

                <tfoot id='1A4Ve'></tfoot>
              • <legend id='1A4Ve'><style id='1A4Ve'><dir id='1A4Ve'><q id='1A4Ve'></q></dir></style></legend>
                1. 本文介绍了转换为 PHP REST CURL POST的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我们如何将此代码转换为 PHP REST CURL POST?

                  How can we convert this code to PHP REST CURL POST?

                  POST https://apis.live.net/v5.0/me/skydrive/files?access_token=ACCESS_TOKEN
                  
                  Content-Type: multipart/form-data; boundary=A300x
                  
                  --A300x
                  Content-Disposition: form-data; name="file"; filename="HelloWorld.txt"
                  Content-Type: application/octet-stream
                  
                  Hello, World!
                  --A300x--
                  

                  推荐答案

                  $url = 'POST https://apis.live.net/v5.0/me/skydrive/files';
                  $ch = curl_init();
                  curl_setopt($ch,CURLOPT_URL, $url);
                  curl_setopt($ch,CURLOPT_POSTFIELDS, array('access_token' => TOKEN, 'name' => 'file', 'filename' => "@HelloWorld.txt"));
                  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                  $result = curl_exec($ch);
                  curl_close($ch);
                  

                  未阅读所有帖子,已修复.

                  Didn't read all of post, fixed.

                  这篇关于转换为 PHP REST CURL POST的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  PHP Upload File Validation(PHP 上传文件验证)
                  PHP Error - Uploading a file(PHP 错误 - 上传文件)
                  How can I write tests for file upload in PHP?(如何在 PHP 中编写文件上传测试?)
                  php resizing image on upload rotates the image when i don#39;t want it to(php在上传时调整图像大小会在我不想要它时旋转图像)
                  How to send additional data using PLupload?(如何使用 PLupload 发送附加数据?)
                  change button text in js/ajax after mp4 =gt;mp3 conversion in php(在 php 中的 mp4 =gt;mp3 转换后更改 js/ajax 中的按钮文本)
                  <legend id='NwgL3'><style id='NwgL3'><dir id='NwgL3'><q id='NwgL3'></q></dir></style></legend>
                  • <bdo id='NwgL3'></bdo><ul id='NwgL3'></ul>

                        • <i id='NwgL3'><tr id='NwgL3'><dt id='NwgL3'><q id='NwgL3'><span id='NwgL3'><b id='NwgL3'><form id='NwgL3'><ins id='NwgL3'></ins><ul id='NwgL3'></ul><sub id='NwgL3'></sub></form><legend id='NwgL3'></legend><bdo id='NwgL3'><pre id='NwgL3'><center id='NwgL3'></center></pre></bdo></b><th id='NwgL3'></th></span></q></dt></tr></i><div id='NwgL3'><tfoot id='NwgL3'></tfoot><dl id='NwgL3'><fieldset id='NwgL3'></fieldset></dl></div>
                            <tbody id='NwgL3'></tbody>

                          <small id='NwgL3'></small><noframes id='NwgL3'>

                          <tfoot id='NwgL3'></tfoot>