<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

        时间:2023-12-01

            <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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Android:使用 MultipartEntity 上传大文件 下一篇:基于 AJAX/PHP 的大文件上传,带有进度条

                  相关文章

                  <legend id='NwgL3'><style id='NwgL3'><dir id='NwgL3'><q id='NwgL3'></q></dir></style></legend>
                  • <bdo id='NwgL3'></bdo><ul id='NwgL3'></ul>

                  1. <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>

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

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