I used "CURLOPT_HTTPHEADERS" when it should have been "CURLOPT_HTTPHEADER" (so "S")
ug. On Mar 2, 3:20 pm, tog <[email protected]> wrote: > Hello all, > > I am attempting to write a script to create user accounts using php > +curl. > > I am trying to set the type using: > > $add_ch->headers[] = 'Authorization: GoogleLogin auth=' . $this->gapps_token; > > $add_ch->headers[] = 'Content-length: ' . strlen($xml_data); > $add_ch->headers[] = 'Content-type: application/atom+xml'; > > (then in the $add_ch curl object) > curl_setopt($this->curl_handle, CURLOPT_HTTPHEADERS, $this->headers); > > I've verified that my script is attempting to set the headers I've > specified (no code errors) but I keep getting this response: > > Content-Type application/x-www-form-urlencoded is not valid. > > Anyone jump this hurdle? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Apps APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-apps-apis?hl=en -~----------~----~----~----~------~----~------~--~---
