{"action":"created","issue":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2828","labels_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2828/labels{/name}","comments_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2828/comments","events_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2828/events","html_url":"https://github.com/AFNetworking/AFNetworking/issues/2828","id":93412173,"number":2828,"title":"baseURL is not used in requestWithMethod:URLString:parameters: as stated in docs","user":{"login":"teradyl","id":232291,"avatar_url":"https://avatars.githubusercontent.com/u/232291?v=3","gravatar_id":"","url":"https://api.github.com/users/teradyl","html_url":"https://github.com/teradyl","followers_url":"https://api.github.com/users/teradyl/followers","following_url":"https://api.github.com/users/teradyl/following{/other_user}","gists_url":"https://api.github.com/users/teradyl/gists{/gist_id}","starred_url":"https://api.github.com/users/teradyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teradyl/subscriptions","organizations_url":"https://api.github.com/users/teradyl/orgs","repos_url":"https://api.github.com/users/teradyl/repos","events_url":"https://api.github.com/users/teradyl/events{/privacy}","received_events_url":"https://api.github.com/users/teradyl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/labels/duplicate","name":"duplicate","color":"6900FF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-07T01:11:12Z","updated_at":"2015-12-15T15:22:04Z","closed_at":"2015-07-09T13:16:02Z","body":"According to the docs:\r\n```\r\n/**\r\nThe URL used to monitor reachability, and construct requests from relative paths in methods like requestWithMethod:URLString:parameters:, and the GET / POST / et al. convenience methods.\r\n*/\r\n@property (readonly, nonatomic, strong) NSURL *baseURL;\r\n```\r\nWhen creating a request using `requestWithMethod:URLString:parameters:error:` (`requestWithMethod:URLString:parameters:` is deprecated), it doesn't take into account the baseURL for the request as stated in the docs.\r\n\r\nOnly the convenience request methods take advantage of the baseURL. If you want to use `requestWithMethod:URLString:parameters:error:` in your code, you have to construct your URL with the baseURL manually.\r\n\r\nIn my case, this became an issue since I wanted to funnel all requests through `requestWithMethod` instead of having if-else statements deciding which convenience method to use.\r\n\r\nIt would seem that making `HTTPRequestOperationWithHTTPMethod:URLString:parameters:success:failure:` a public method would help this problem, enabling the ability to override that directly and calling that instead of `HTTPRequestOperationWithRequest:success:failure:`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/comments/164796583","html_url":"https://github.com/AFNetworking/AFNetworking/issues/2828#issuecomment-164796583","issue_url":"https://api.github.com/repos/AFNetworking/AFNetworking/issues/2828","id":164796583,"user":{"login":"kcharwood","id":198768,"avatar_url":"https://avatars.githubusercontent.com/u/198768?v=3","gravatar_id":"","url":"https://api.github.com/users/kcharwood","html_url":"https://github.com/kcharwood","followers_url":"https://api.github.com/users/kcharwood/followers","following_url":"https://api.github.com/users/kcharwood/following{/other_user}","gists_url":"https://api.github.com/users/kcharwood/gists{/gist_id}","starred_url":"https://api.github.com/users/kcharwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcharwood/subscriptions","organizations_url":"https://api.github.com/users/kcharwood/orgs","repos_url":"https://api.github.com/users/kcharwood/repos","events_url":"https://api.github.com/users/kcharwood/events{/privacy}","received_events_url":"https://api.github.com/users/kcharwood/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T15:22:04Z","updated_at":"2015-12-15T15:22:04Z","body":"Thanks @db42. I think I have this all straightened out in the 3.0.0 release, but I'd love a second pair of eyes. The deprecated methods were removed, and I believe everything is going through the same path now."}}