Home > Backend Development > PHP Tutorial > 怎么把CURL获取到的图片以二进制的方式post到某地址

怎么把CURL获取到的图片以二进制的方式post到某地址

WBOY
Release: 2016-06-13 12:16:51
Original
1049 people have browsed it

如何把CURL获取到的图片以二进制的方式post到某地址
RT,如$data为curl_exec()获取到的图片,此时我想把该图片以二进制方式post到某地址,应该怎么做?
------解决思路----------------------
post 传输数据时,并不需要管数据的来源和格式,因为那是接受方的事情
当然,你需要按对方的要求对数据做些加工

于是,那个某地址要求你传什么样的数据呢?
------解决思路----------------------
参考:http://blog.csdn.net/fdipzone/article/details/40098169

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template