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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:52:35+00:00 2026-06-11T06:52:35+00:00

Previously, I was able to get the contents of the URL with this encoding:

  • 0

Previously, I was able to get the contents of the URL with this encoding:

<?xml version = "1.0" encoding = "UTF-8"?>

And parse it into NSString with codes shown below:

NSMutableData *receivedData =  [[[NSMutableData alloc] initWithContentsOfURL:[NSURL URLWithString:authenticateURL]] autorelease];
    NSString *string = [[[NSString alloc] initWithData:receivedData encoding:NSUTF8StringEncoding] autorelease];if (string) {   // if connection established, string will look for <error> in XML
        NSRange range = [string rangeOfString:@"<error>"];
        if (range.location == NSNotFound) {
            result = TRUE;
            NSLog(@"Authenticated!");  // if <error> not found, record is present
        }                           //return TRUE to load data
        else {
            result = FALSE;         // <error> found in XML, record is not found
            NSLog(@"Not Authenticated!");
        }
    }

However, the contents I need to fetch now is actually without a type of encoding, example:

<?xml version="1.0" ?><authenticate><auth>Y</auth></authenticate>

Therefore now, as I NSLog the string, it is empty. Have tried searching for other methods but all the examples I found, people were fine with using UTF8StringEncoding. Would be glad for any advice :)!Thanks!

  • 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-11T06:52:37+00:00Added an answer on June 11, 2026 at 6:52 am

    Sorry all, actually the reason why I was unable to retrieve the XML from the URL is because of some SSL problem. The solution I used can be found here: How to use NSURLConnection to connect with SSL for an untrusted cert?

    Thank you everyone for helping too^^

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

Sidebar

Related Questions

Thanks to help I previously received on this forum I was able to get
I am new to android, I tried XML parse with SAX previously but I
Previously I did a Tutorial on OpenGL-ES 1.0. For reference, this can be found
Previously, I have an app that uses core data. I use same store url
Im trying to get my javascript to read the JSON from a url on
I've read plenty of previously asked questions about arrays but I'm just not able
I have the following two functions: $(.content).click( function() { var id = this.id; $.get(InfoRetrieve,
I'm currently working on a project where we previously used Django. However this proved
I did make a post previously but was not able to properly explain my
I recently change gwt.xml script to only compile 1 permutation(ie8 only), This solve my

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.