title: Vimeo API - unacceptable content-type: text/plain
body: <p>I am using Vimeo API in my iOS application. But since few days it has stopped working, It gives me error while I am trying to upload any videos.</p>
  
  <p>Following is the way, I am creating the request</p>
  
  <pre class="lang-html prettyprint-override"><code>    NSURL *uploadURL = [NSURL URLWithString:endpoint];
          OAMutableURLRequest *req = [[OAMutableURLRequest alloc] initWithURL:uploadURL consumer:self._oaconsumer token:self._authToken realm:nil signatureProvider:self._sigProv];
          [req setTimeoutInterval:60.0];
          [req setHTTPMethod:@"PUT"];
          [req setValue:[NSString stringWithFormat:@"%ld",(unsigned long)self._byteSizeOfVideo] forHTTPHeaderField:@"Content-Length"];
          [req setValue:@"video/quicktime" forHTTPHeaderField:@"Content-Type"];
  </code></pre>
  
  
  
  <p>and following error message i received,</p>
  
  <pre class="lang-js prettyprint-override"><code>Printing description of error:
  Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: bad request (400)" UserInfo=0x1705bc80 {com.alamofire.serialization.response.error.response=&lt;NSHTTPURLResponse: 0x15d1ff60&gt; { URL: http://1511655313.cloud.vimeo.com/upload_multi?ticket_id=75225c91f65b14315902b8bee5fbbc44&amp;amp;signature=6126962b362c9c0777bce88556211572 } { status code: 400, headers {
      "Access-Control-Allow-Origin" = "*";
      Connection = close;
      "Content-Length" = 28;
      "Content-Type" = "text/plain";
      Date = "Thu, 12 Feb 2015 15:46:12 GMT";
      Server = "Vimeo/1.0";
  } }, NSErrorFailingURLKey=http://1511655313.cloud.vimeo.com/upload_multi?ticket_id=75225c91f65b14315902b8bee5fbbc44&amp;amp;signature=6126962b362c9c0777bce88556211572, NSLocalizedDescription=Request failed: bad request (400), com.alamofire.serialization.response.error.data=&lt;5369676e 61747572 65205661 6c696461 74696f6e 20666169 6c65640a&gt;, NSUnderlyingError=0x15d237a0 "Request failed: unacceptable content-type: text/plain"}
  </code></pre>
  
  
  
  <p>Please do needful help.</p>
  
  <p>Thank you !</p>