title: Server don't receive data send by iOS
body: <p>I'm send a string to my server (PHP) with the code below:</p>
  
  <pre><code>    NSString* str = @"teststring";
      NSData* dataToSend = [str dataUsingEncoding:NSUTF8StringEncoding];
  
      uint8_t *dataBytes = (uint8_t *)[dataToSend bytes];
      uint64_t length = dataToSend.length;
  
      [outputStream write:dataBytes maxLength:length];
  </code></pre>
  
  <p>The problem with this is code, is that I don't receive the string (Server recognize that a user enter and I receive a handshake in Xcode console) I test others codes and works very well (receive data), but in this time I'm trying by my own. I believe I'm not converting the message to the appropriate format, and that's why the message is not being received, am I right? If so how I could convert this message to the appropriate format?</p>