What have you done to debug this? Be specific.
Have you NSLog'ed intermediate data, such as the individual percent-escaped strings? If so, post the actual NSLog output.
Exactly what is the value of appDelegate.macaddress, which is not being percent-escaped? Post its actual NSLog output.
Have you broken out the data before it's set as HTTP body and NSLog'ed that? Post the actual NSLog output.
For example, I would want to see the formatted string here,
BEFORE it's converted to NSData:
Code:
setHTTPBody:[[NSString stringWithFormat:@"user=%@&mac=%@&titolo=%@&trama=%@", parsedUser, appDelegate.macaddress, parsedTitolo, parsedTrama] dataUsingEncoding:NSUTF8StringEncoding]
Have you dumped the bytes of the NSData as hex and confirmed that they are all valid, and the structure is well-formed (no extra bytes, no null bytes)? What does an NSLog of the NSData produce? Post the output.
Have you used the debugger to set breakpoints, and examined the data at each point?
You've described nothing about the HTTP response.
What output is produced by NSLog'ing the NSURLResponse's significant properties?
What output is produced by NSLog'ing the NSData?
What output is produced by NSLog'ing the NSData converted to string?
Effective debugging requires you to break things down into smaller pieces, and confirm that the smaller pieces are correct. You've barely begun to really break this down into smaller pieces, and you haven't posted any NSLog output.
We can't see your screen. All we know about this is what you tell us.