You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org> on 2012/02/07 00:42:59 UTC

[jira] [Commented] (CB-236) Add ContentLength Header in Upload request

    [ https://issues.apache.org/jira/browse/CB-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201813#comment-13201813 ] 

Shazron Abdullah commented on CB-236:
-------------------------------------

Prob it's just this that we have to do:
https://github.com/apache/incubator-cordova-ios/blob/master/PhoneGapLib/Classes/FileTransfer.m#L135

{code}
   [postBody appendData:[[NSString stringWithFormat:@"Content-Length: %d\r\n\r\n", [fileData length]] dataUsingEncoding:NSUTF8StringEncoding]];
{code}
                
> Add ContentLength Header in Upload request
> ------------------------------------------
>
>                 Key: CB-236
>                 URL: https://issues.apache.org/jira/browse/CB-236
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.1.0
>            Reporter: Shazron Abdullah
>             Fix For: 1.6.0
>
>
> Some servers require a ContentLength on POST requests.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira