How do I upload a file with CURLRequest? |
I am unable to implement a curl call using the library. I'm trying to write the following command using the library:
Code: curl -i --upload-file /Users/peter/Desktop/superneatimage.png --header "Authorization: Bearer redacted" 'https://api.linkedin.com/mediaUpload/C5522AQGTYER3k3ByHQ/feedshare-uploadedImage/0?ca=vector_feedshare&cn=uploads&m=AQJbrN86Zm265gAAAWemyz2pxPSgONtBiZdchrgG872QltnfYjnMdb2j3A&app=1953784&sync=0&v=beta&ut=2H-IhpbfXrRow1' PHP Code: $client = \Config\Services::curlrequest([], null, null, false); |
Welcome Guest, Not a member yet? Register Sign In |