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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:22:55+00:00 2026-05-31T09:22:55+00:00

I guess I have to set some context before I explain the problem I

  • 0

I guess I have to set some context before I explain the problem I have.

For my iOS app, I am writing my own HTTPClient using NSOperationQueue and executing each operation wrapping NSURLRequest and NSURLConnection on main run loop with NSRunLoopCommonModes so it won’t block the UI.

I noticed that the web services which didn’t require authentication were working fine and returning data but the web services which needed authentication returned status code 503 – Service Unavailable error.

Before I call any of the web services, I am completing the authentication process by handling multiple URL redirects using a web view and finally upon getting success, I am setting a cookie. So this cookie should be sent automatically for the web services which require authentication and the web services which require authentication should work ideally. This was the case with my previous HTTPClient without NSOperationQueue. I didn’t pass the cookie explicitly.

I did lot of debugging and finally figured that the problem was not that complex but stupid. The actual problem was while sending the HTTP method name for my URLRequest I was passing the method name in pascal case instead of upper case.

So if I have, [myURLRequest setHTTPMethod:@”Get”] the web services requiring authentication do not work but after changing the method name to upper case letters like [myURLRequest setHTTPMethod:@”GET”] it started working.

So it turned out that it was not the problem with authentication but web method name.

I am wondering about two things:
1) Is that a rule that the web method name should always be in upper case letters? Or this is specific to the iOS? Notice here that the web services which didn’t require authentication were working fine with web method name not having in upper case letters too.

2) The authentication cookie being set on successful authentication is never sent out explicitly along with any NSURLRequest. So how does iOS send it along with the URL request automatically?

  • 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-31T09:22:56+00:00Added an answer on May 31, 2026 at 9:22 am

    From the specification:

    The Method token indicates the method to be performed on the resource identified by the Request-URI. The method is case-sensitive.

    It then goes on to list a number of method names, all of which are entirely in upper case.

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

Sidebar

Related Questions

I'm using PreferenceActivity to set some preferences about another BroadcastReciever that i have. While
I guess I have been using the Web Site model ever since .NET 2.0
We have been using Rational Rose 2000 or so for modeling since i guess
i have follow taxomony has been set up: accommodation -backpacker -guest -holiday and i
A fairly simple question for which I have a guess, but I can't find
I have a HashMap (although I guess this question applies to other collections) of
I guess no one will have a definative answer to this but considered predictions
I guess this is kind of an odd question but I have tried setting
I guess the topic says it. I have tried googling this, but havent gotten
I guess it is impossible, but I will ask it anyway. I have a

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.