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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:26:08+00:00 2026-06-10T01:26:08+00:00

NSString *post =[NSString stringWithFormat:@uname=%@&upassword=%@,textname.text, textpass.text]; NSString *hostStr = @http://IP:port/abc/login.jsp?; hostStr = [hostStr stringByAppendingString:post]; NSData

  • 0
NSString *post =[NSString stringWithFormat:@"uname=%@&upassword=%@",textname.text, textpass.text];
NSString *hostStr = @"http://IP:port/abc/login.jsp?";
hostStr = [hostStr stringByAppendingString:post];
NSData *dataURL =  [NSData dataWithContentsOfURL:[NSURL URLWithString:hostStr]];    
NSString *serverOutput = [[NSString alloc] initWithData:dataURL encoding:
NSASCIIStringEncoding];

But problem is not getting response from the server and as i programmed.all kind of login details returning some value but on this page getting nothing.. ?

  • 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-06-10T01:26:10+00:00Added an answer on June 10, 2026 at 1:26 am
    NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
    NSString *url = [NSString stringWithFormat:@"http://yourpagenaem/check-user.jsp?          uname=%@&upassword=%@",textname.text,textpass.text];
    [request setURL:[NSURL URLWithString:url]];
    [request setHTTPMethod:@"GET"];
    [request setTimeoutInterval:7.0];
    NSURLResponse *response;
    NSError *error;
    [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)response;
    int statusCode = [httpResponse statusCode];
    

    Check this out…

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

Sidebar

Related Questions

NSString *urlString =[NSString stringWithFormat:@http://api.stackoverflow.com/1.0/questions?tagged=iphone & key=%d,key1]; NSURL *url = [NSURL URLWithString:urlString]; NSMutableURLRequest *request =
NSString *reqURL = [NSString stringWithFormat:@%@/login,SERVER_URL]; NSMutableURLRequest *req = [[NSMutableURLRequest alloc]initWithURL:[NSURL URLWithString:reqURL]]; [req setValue:@application/x-www-form-urlencoded forHTTPHeaderField:@content-type];
NSString *myRequestString = [NSString stringWithFormat:@&nbr=%@&import=%@,tmpString,noSpaces]; NSData *myRequestData = [ NSData dataWithBytes: [ myRequestString UTF8String
I've seen this post: NSString: newline escape in plist but I'd like to know
i want to generate HMAC-SHA1 of NSString type variable. I see the post but
I want to make http form post using NSURLConnection in iOS. I have two
This is my xml NSString *Message = [NSString stringWithFormat: @<?xml version=\1.0\ encoding=\utf-8\?>\n <query>\n <IdCategory>1088</IdCategory>\n
When my app gets to this, I receive EXC_BAD_ACCESS NSString *nameData = nameTextField.text; NSString
i have sent method in objective-c of sending http post and in the body
I am trying to post text from my iPhone app to my wall on

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.