I am trying to see if there is a way to change the request url once the NSMutableURLRequest is being initialize? I looked into the instance method, but nowhere it indicates that you can change the url. I tried to make a request of “URL” and change it accordingly, but it still points to the old url.
Anyone know how to change this would like to know it.
Thanks.
There is a method on NSMutableURLRequest called
- (void)setURL:(NSURL *)theURLHere’s an example:
Specifically, the method documentation is at:
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSMutableURLRequest_Class/Reference/Reference.html#//apple_ref/occ/instm/NSMutableURLRequest/setURL: