I have a web service that is using the PUT method to request URL default / isUserInternational / id / 1 The request body should add IA International = 1.
I am using the following code and still I could not request a PUT.
NSURL * url = [NSURL URLWithString: [NSString StringWithFormat: @ "default / isUserInternational / id /% @", @ "5"] ;;; Self.asiFormDataRequest = [[ASIFormDataRequest alloc] initWithURL: url]; [Delegate self .asiFormDataRequest set: self]; [Itself .asialFormDataRequest setTimeOutSeconds: REQUEST_TIMEOUT]; [Self .asiFormDataRequest setPostFormat: ASIMultipartFormDataPostFormat]; [Self.asiFormDataRequest setRequestMethod: @ "PUT"]; [Self .asiFormDataRequest addRequestHeader: @ "Accept" value: @ "Application / Jason"]; [Self .asiFormDataRequest addRequestHeader: @ "content-type" value: @ "application / x-www-form-urxed"]; //[self.asi.asi.FormDataRequest addRequestHeader: @ "1" Value: @ "isInternational"]; //[self.asiFormDataRequest appendPostData: [@ "1" data-encryption encoding: NSUTF8 string encoding]]; [Self .asiFormDataRequest addPostValue: @ "1" forKey: @ "isInternational"]; [Self .asiFormDataRequest start timeSignet];
Please help! thank you in advanced.
If you want to send data through PUT, then use appendPostData: < / Code> or
append pstframeframefile:
.
Comments
Post a Comment