title: Edit list then post that into a httprequest
body: <p>Right now I have a foreach loop that grabs the first link with an img tag.</p>
  
  <p>I want to be able to edit this link I get and then put it in a request.</p>
  
  <p>For example say I get back "http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif" and I only want to keep the "p-c1rF4kxgLUzNc" part and then put that into a new url in a httprequest.</p>
  
  <p>The link would be random so I can't simply just put a static url, I want the one the list gets.</p>
  
  <pre><code>List&lt;string&gt; imgtags = new List&lt;string&gt;();
  
  foreach(HtmlNode link in doc.DocumentNode.SelectNodes("//img[@src]"))
  {
      HtmlAttribute att = link.Attributes["src"];
      imgtags.Add(att.Value);
      break;
  }
  
  //edit the url the list gets
  
  HttpWebRequest request1 = (HttpWebRequest)WebRequest.Create("http://google.com/" + *editedurl*);
  </code></pre>