Answer the question
In order to leave comments, you need to log in
PHP 5.6 and sending file via cURL?
In PHP 5.3, it was possible to simply put a dog (@) in front of the file path in the list of POST fields.
And now it was necessary to write a bot that will load files instead of me automatically (we automate it so to speak: D) I tried to send the file "the old fashioned way" and got an error.
I googled a little and found out that now you need to use some class to send a file ... In general, I didn’t understand anything from the documentation) Maybe I read it badly.
please give an example of sending a file via CURL POST request.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question