user29275: so I have a wifi shield and I am sending a web request, but its not going through. I know it's not the server because the other function of the program works properly. My code is available on pastebin
EDIT:
The request that is not working is on line 318

user4143: You are lacking a space:
client.println((String)"GET /msg.php?action=send&ID=2&message=" += currentMessage += "HTTP/1.1");
                                                                                      ^

Your HTTP is running in to the content of your message ending up with a corrupt request. Also you are doing appending within your strings (+=) when you don't need to (+ is all that is needed). In fact, you don't even need that - just do multiple prints and reduce the hammering your heap is getting. Oh, and don't forget to use F():
client.print(F("GET /msg.php?action=send&ID=2&message="));
client.print(currentMessage);
client.println(F(" HTTP/1.1"));


29275: <p>so I have a wifi shield and I am sending a web request, but its not going through. I know it's not the server because the other function of the program works properly. My code is available on <a href="http://pastebin.com/w9W3RGPi" rel="nofollow noreferrer">pastebin</a></p>

<p><strong>EDIT:</strong></p>

<p>The request that is not working is on line 318</p>
 4143: <p>You are lacking a space:</p>

<pre><code>client.println((String)"GET /msg.php?action=send&amp;ID=2&amp;message=" += currentMessage += "HTTP/1.1");
                                                                                      ^
</code></pre>

<p>Your HTTP is running in to the content of your message ending up with a corrupt request. Also you are doing appending within your strings (<code>+=</code>) when you don't need to (<code>+</code> is all that is needed). In fact, you don't even need that - just do multiple prints and reduce the hammering your heap is getting. Oh, and don't forget to use <code>F()</code>:</p>

<pre><code>client.print(F("GET /msg.php?action=send&amp;ID=2&amp;message="));
client.print(currentMessage);
client.println(F(" HTTP/1.1"));
</code></pre>
