POST multipart/form-data with Objective-C

The process is as follows: Create dictionary with the userName, userEmail, and userPassword parameters. NSDictionary *params = @{@”userName” : @”rob”, @”userEmail” : @”rob@email.com”, @”userPassword” : @”password”}; Determine the path for the image: NSString *path = [[NSBundle mainBundle] pathForResource:@”avatar” ofType:@”png”]; Create the request: NSString *boundary = [self generateBoundaryString]; // configure the request NSMutableURLRequest *request = [[NSMutableURLRequest … Read more

Why is it that “No HTTP resource was found that matches the request URI” here?

Your problems have nothing to do with POST/GET but only with how you specify parameters in RouteAttribute. To ensure this, I added support for both verbs in my samples. Let’s go back to two very simple working examples. [Route(“api/deliveryitems/{anyString}”)] [HttpGet, HttpPost] public HttpResponseMessage GetDeliveryItemsOne(string anyString) { return Request.CreateResponse<string>(HttpStatusCode.OK, anyString); } And [Route(“api/deliveryitems”)] [HttpGet, HttpPost] public … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)