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

  • Home
  • SEARCH
  • 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 5980857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:51:39+00:00 2026-05-22T21:51:39+00:00

am setting the parameters(key-value pairs – user name, password, email id) for NSMutableURLRequest(POST) using

  • 0

am setting the parameters(key-value pairs – user name, password, email id) for NSMutableURLRequest(POST) using the class method

 + (void)setProperty:(id)value forKey:(NSString *)key inRequest:(NSMutableURLRequest *)request

and requesting the server using sendSynchronous.

But at the server end, the parameters are null.

plz suggest me some other new solution???

  • 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-22T21:51:40+00:00Added an answer on May 22, 2026 at 9:51 pm

    Use ASIFormDataRequest. Its -setPostValue:forKey: method makes POSTing data as application/x-www-urlformencoded or multipart/form-data dead simple.

    If you want to use NSURLRequest instead, check out the OAuthConsumer project for an example of using application/x-www-form-urlencoded. Start by reading -setParameters: in NSMutableURLRequest+Parameters.m and go from there. For sending data asmultipart/form-datausingNSURLRequest`, see Facebook’s FBRequest.

    +[NSURLProtocol setProperty:forKey:inRequest:] is intended to be used to extend the URL loading system to support additional protocols:

    Protocol implementors who need to extend the capabilities of NSURLRequest and NSMutableURLRequest [by providing categories on these classes] can store and retrieve protocol-specific request data by using NSURLProtocol’s class methods propertyForKey:inRequest: and setProperty:forKey:inRequest:. (here)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Take the following class: class Automator def fill_specific_form(fields) fields.each_pair do |key, value| puts Setting
I'd like to store a set of key/value pairs in the application settings of
Setting up an integration server, I’m in doubt about the best approach regarding using
The Setting: The program in question tries to post form data via an AJAX
I know of two methods of setting a default parameter, but I would like
What do you find is the optimal setting for mysql slow query log parameter,
Setting up ASP.net MVC with Linq2SQL or Entity Framework's context to have scaffolding work
Setting up a Windows based web application on Amazon's cloud has definitely been a
While setting up CruiseControl, I added a buildpublisher block to the publisher tasks: <buildpublisher>
When setting up a new virtual directory for hosting a SOAP web service in

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.