Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6868073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:23:21+00:00 2026-05-27T03:23:21+00:00

I am working in a UIWebView ios app. in the delegate method: – (BOOL)webView:(UIWebView

  • 0

I am working in a UIWebView ios app.

in the delegate method:

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType

I get the body as follow:

NSString *stringPost = [[NSString alloc] initWithData:request.HTTPBody encoding:NSASCIIStringEncoding];

It works ok, but now, i would like to add a parameter to the body and I try it as follow:

NSMutableData *myBody = [NSMutableData dataWithData:request.HTTPBody];

[myBody appendData: [[NSString stringWithFormat: @"isNative", @"TRUE"] dataUsingEncoding: NSUTF8StringEncoding]];

[request setHTTPBody:myBody];

it not works.

Any idea of how to add parameters to my httpBody?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:23:21+00:00Added an answer on May 27, 2026 at 3:23 am

    When you specify format for string then you are in need of indicate which format would be used (like %@, %d, %.2f e.g.). I’m not sure what you want to specify, but you need to use stringWithFormat somethig like this

    [myBody appendData: [[NSString stringWithFormat: @"isNative = %@", @"TRUE"] dataUsingEncoding: NSUTF8StringEncoding]];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to get a UIGestureRecognizer working with a UIWebview which is a
I'm working on an iOS app, and I need to prevent a UIButton from
I am working on an app targeted for > iOS 4. In this app
I am working on an IPhone app and i have a UIWebview that by
I'm working on an iOS app in which I need to implement a basic
I'm using html/javascript with iOS and UIWebView. I want to invoke an objective-c method
I'm trying to get a UIWebView working with the following code: NSString *urlAddress =
I cannot get Raphaël working in a UIWebView. I load a simple HTML-Webpage with
I'm working on an app that uses a UIWebView to display its help files.
I am working on an app with xml parser, uiwebview, navigationcontroller, displaying a lot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.