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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:23:34+00:00 2026-05-26T12:23:34+00:00

I have a php code running on my server that i call my web

  • 0

I have a php code running on my server that i call my web service.It processes the data in send integer value.How can i get that?Here is my request url :

  NSString *requestURL=[NSString stringWithFormat:@"%@?u=%@&  p=%@&platform=ios",url,txtUserName.text,txtPassword.text];

Update Comment : I have a php file on my server.It takes 3 arguments and register my users and returns value like 1(for success,2 for duplicate).I need to send request to my server as :

url="http://smwebtech.com/Pandit/web_service/signup.php?u=Test&p=password&platform=ios"

How can i send this request to server and get the return value from server?

  • 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-26T12:23:34+00:00Added an answer on May 26, 2026 at 12:23 pm

    You can use NSURLConnection. You should use implement the NSURLConnectionDataDelegate protocol and use the NSURLConnection class.

    -(void) requestPage
    {
        NSString *urlString = @"http://the.page.you.want.com";
        NSURL *url = [NSURL URLWithString:urlString];
    
        NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLCacheStorageAllowed timeoutInterval:20.0f];
    
    
        responseData = [[NSMutableData alloc] init];
        connection = [[NSURLConnection connectionWithRequest:request delegate:self] retain];
        delegate = target;
    }
    
    
    -(void) connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
    {   
        if ([response isKindOfClass:[NSHTTPURLResponse class]])
        {
            NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*) response; 
            //If you need the response, you can use it here
        }
    }
    
    -(void) connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
    {
        [responseData appendData:data];
    }
    
    -(void) connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
    {
        [responseData release];
        [connection release];
    }
    
    -(void) connectionDidFinishLoading:(NSURLConnection *)connection
    {
        if (connection == adCheckConnection)
        {
            NSString *responseString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
    
            //You've got all the data now
            //Do something with your response string
    
    
            [responseString release];
        }
    
        [responseData release];
        [connection release];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have some PHP code running inside a web server, for example, running
I have some PHP code that generates dynamic tables of data on the fly.
I have a php script http://example.com/myapp/myscript.php running on an Apache server. I call this
I have a PHP script (running on a Linux server) that ouputs the names
Iam running WAMP server and just enabled php_memcache extension and have tried the code
I have some PHP code that is designed to make a spreadsheet with formulas
I have some PHP code that generates a calendar and then outputs html to
Hey everyone... I'm not too familiar with PHP... but I have PHP code that
I have just moved my code over to a new server (running on Apache
I have a copy of a code running on the production server, and I

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.