How to PHP simulate curl transfer under cmd to download files
Suo
Suo 2021-05-22 00:52:29
0
0
1003

Recently I found a GAN algorithm on github to turn old photos into color, so I put it on the server and tried it. I wanted to call the api through php to download the converted pictures, but I found many tutorials on the Internet and couldn't succeed.

The following is achieved through cmd:

curl -X POST "http://suoran.ddns.net:5000/process"

-H "accept: image/png" -H "Content-Type: application/json"

-d "{\"url\":\"http://www.afrikanheritage.com/wp-content/uploads/2015 /08/slave-family-P.jpeg\", \"render_factor\":35}"

--output colorized_image.png

Someone can Solve it

Suo
Suo

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template