incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-236) Add ContentLength Header in Upload request
Date Mon, 06 Feb 2012 23:42:59 GMT

    [ 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

        

Mime
View raw message