Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.

Forum Discussion

FSUInnovation's avatar
FSUInnovation
Explorer | Level 4
5 years ago

http header issue with file send via php curl

I keep getting errors in my php code regarding a missing authorization header in my http request using curl. This is what my code looks like: $doc = $_FILES['Resume']; $filename = $doc['tmp_name']...
  • Greg-DB's avatar
    5 years ago

    According to the PHP curl documentation, the 'CURLOPT_HEADER' option is to "to include the header in the output". It doesn't set the headers for the request. You should use the 'CURLOPT_HTTPHEADER' option for that instead.