• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: My eyes are failing me.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My eyes are failing me.


  • Subject: Re: My eyes are failing me.
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 22 Feb 2019 19:02:11 +0100


> Am 22.02.2019 um 18:40 schrieb Alex Zavatone <email@hidden>:
>
> There are 2 problems here.
>
> The description is non standard and misleading and the /api string is
> stripped from the URL that it indicates it will use in that URL.  Look.
>
> (lldb) po [[NSURL URLWithString:@"/login"
> relativeToURL:self.sharedData.webServicesURL] absoluteURL]
> https://home-qa.mrcooper.com/login <https://home-qa.mrcooper.com/login>
>
> (lldb) po [NSURL URLWithString:@"/login"
> relativeToURL:self.sharedData.webServicesURL]
> /login -- https://home-qa.mrcooper.com/api <https://home-qa.mrcooper.com/api>
>
> See how in the top output that /api is stripped from the URL that it will use
> while it is displayed in the output on the bottom?
>
> Damn misleading.

That is not misleading, that is how relative URLs are supposed to work. You
should have done:

 [[NSURL URLWithString:@"login" relativeToURL:self.sharedData.webServicesURL]
absoluteURL] with self.sharedData.webServicesURL being:
„https://home-qa.mrcooper.com/api/„

for more information please refer to:
http://webreference.com/html/tutorial2/3.html


regards,

        Lars
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: My eyes are failing me.
      • From: Alex Zavatone <email@hidden>
    • Re: My eyes are failing me.
      • From: Alex Zavatone <email@hidden>
References: 
 >My eyes are failing me. (From: Alex Zavatone <email@hidden>)
 >Re: My eyes are failing me. (From: Jens Alfke <email@hidden>)
 >Re: My eyes are failing me. (From: Alex Zavatone <email@hidden>)
 >Re: My eyes are failing me. (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: My eyes are failing me.
  • Next by Date: Re: My eyes are failing me.
  • Previous by thread: Re: My eyes are failing me.
  • Next by thread: Re: My eyes are failing me.
  • Index(es):
    • Date
    • Thread