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 4548458
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:13:25+00:00 2026-05-21T16:13:25+00:00

i am working on a messaging app where all messages are stored in a

  • 0

i am working on a messaging app where all messages are stored in a server on temporary basis.
i have the follwoing code.

NSURL *url = [NSURL URLWithString:[BARAppDelegate returnsendmessageurl]];
ASIFormDataRequest  *request1 = [ASIFormDataRequest requestWithURL:url];
[request1 setPostValue:usernameEmailid forKey:@"username"];
[request1 setPostValue:messagebody forKey:@"MessageBody"];
[request1 setPostValue:receipientnumber forKey:@"RecipientMobileNumber"];
[request1 setPostValue:sendermobilenumber forKey:@"SenderMobileNumber"];
[request1 addData:nil withFileName:@"ipodfile.jpg" andContentType:@"application/octet-stream" forKey:@"photos"];
[request1 setDelegate:self];
[request1 setPersistentConnectionTimeoutSeconds:30];
[request1 setShouldAttemptPersistentConnection:YES];
[request1 startAsynchronous];

when i check the database on the server , surprisingly it has taken only null values for all the parameters(usernameEmailid ,messagebody,receipientnumber,sendermobilenumber). i NSLoged all those values just before the i put the request and they seem to be fine.

NOTE : this does not happen all the time. it happens few times . Also this happens only when i am trying to reply to an existing message that i have in the inbox. it does not happen when i try to send a new message.

am i doing something wrong here?

  • 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-21T16:13:26+00:00Added an answer on May 21, 2026 at 4:13 pm

    You are using and asynchronous connection and to be able to know if something went wrong on your side or the server side you should implement the following methods before you call

    [request1 startAsynchronous];
    

    Add this:

        [request1 setDidFinishSelector:@selector(uploadRequestFinished:)];
        [request1 setDidFailSelector:@selector(uploadRequestFailed:)];
    

    And implement this methods:

    - (void)uploadRequestFinished:(ASIHTTPRequest *)request{    
        NSData *responseData = [request responseData];
    
        // Store incoming data into a string
        NSString *response = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
    
        NSLog(@"Server response:%@", response);
    }
    
    - (void)uploadRequestFailed:(ASIHTTPRequest *)request{
    
         NSLog(@"[TWDEBUG] Error - upload failed: \"%@\"",[[request error] localizedDescription]);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a messaging app (something like WhatsApp) and I have a dilemma
I am working in the iPhone messaging app. Am using coredata to store the
I've implemented a messaging system over SQL Server Service Broker. It is working great,
I am putting together a messaging system for a rails app I am working
I'm working on a PHP app which requires various settings to be stored in
I'm working on a very simple email-like messaging functionality as part of an App
I am working with a messaging application using c2dm.. I get registered my app
I have a plugin for a c++ MFC app. I'm working with the developer
Part of an app I'm working on involves a messaging interface which I'm trying
So I have an application which uses C2DM messaging. It's working perfectly in the

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.