title: How can I read a string from a URL to Arduino (webserver) simply instead of just a character?
body: <p>Here is example code:</p>
  
  <p>In this code, it detects the dollar sign and then identifies the character, either 1, 2, 3, etc. If this is entered, <code>http://x.x.x.x/$1</code> - meaning, it chooses block condition 1.</p>
  
  <p>Etc.</p>
  
  <p>I need to change this code, so that I could read the string and store it in a variable.</p>
  
  <p>Maybe I could have <code>http://x.x.x.x/$25</code> or $45 or $100, etc.</p>
  
  <pre><code>void connection()
  {
      EthernetClient client=server.available();
  
      if (client)
      {
          boolean currentLineIsBlank=true;
  
          while (client.connected()) {
              if (client.available()) {
                  char c = client.read();
  
                  if (incoming &amp;&amp; c==' ')
                  {
                      incoming=0;
                  }
                  if (c=='$')
                  {
                      incoming=1;
                  }
                  //Checks for the URL string $1 or $2 and so on.
                  if (incoming==1)
                  {
                      if(c=='1')
                      {
                          //Insert something
                      }
                      if(c=='2')
                      {
  
                      }
                      if(c=='3')
                      {
                          redAll();
                      }
                  }
                  if(c=='\n')
                  {
                      currentLineIsBlank=true;
                  }
                  else if(c!='\r')
                  {
                      currentLineIsBlank=false;
                  }
              }
          }
          delay(1);
          client.stop();
      }
  }
  </code></pre>
  
  <p>What should I do? For the Arduino to read a string. What should I change with this code?</p>