简体   繁体   English

使用curl PHP Codeigniter将图像从一台服务器上传到另一台服务器

[英]Upload image from one server to another server using curl php codeigniter

I have one server there is one image, link to a post. 我有一台服务器有一个图像,链接到一个帖子。 I move post content to another server and insert into a new server. 我将帖子内容移动到另一台服务器,然后插入到新服务器中。 but the image does not go. 但图像不会消失。 can anyone please tell me, how can I upload an image with post data from one server to another server using curl? 谁能告诉我,如何使用curl将带有发布数据的图像从一台服务器上传到另一台服务器?

I tried many examples but I did not get success. 我尝试了很多例子,但没有成功。

Actually you can send the image data in post method from one server and get that post data in the another server. 实际上,您可以从一台服务器以post方法发送图像数据,而在另一台服务器上获取该post数据。

  • you have to mention the server in action 就不得不提到在操作的服务器
  • In that another server you have to get the post data and perform the action. 在另一台服务器中,您必须获取发布数据并执行操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM