sending uploaded file to another server via CURL from a CURLed page

前端 未结 1 351
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-27 12:15

I have seen a lot of examples on how upload files with cURL (Send file with cURL being probably the closest to what I need), but for whatever reason my scripts are not working.<

1条回答
  •  广开言路
    2021-01-27 12:53

    Removing http_build_query() and keeping '@' in front of the file name did it. I am not quite sure what fixed the "does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit" error, but the file is received and parsed properly on SERVER2 now.

    0 讨论(0)
提交回复
热议问题