Как я могу использовать cURL для публикации данных формы в php?Php

Кемеровские программисты php общаются здесь
Гость
Как я могу использовать cURL для публикации данных формы в php?

Сообщение Гость »


I have the following command, which uses the --form/--F option, which I know to be working:

curl --form "file=@/home/USERNAME/import.csv" https://apiprovider.com/api/v0/imports\?token\=[KEY] I need to run this command via php, but I'm having trouble, presumably with the form file data. I tried the following, however echoing or var_dumping the result seems to show nothing, just a blank page or a blank string.

How can I get this command working in PHP?


Источник: https://stackoverflow.com/questions/467 ... ata-in-php

Вернуться в «Php»