Rapaport
Diamonds.Net RapNet.com Rapaport Auctions Fair Trade More
Login Register
Rapaport - TechNet
How to
About
Community
Downloads
Rapaport online
  Rapaport Prices code samples and helpful tips
Other code samples:


string URL = "FILE_URL_PATH";
WebRequest webRequest = WebRequest.Create(URL);

webRequest.Method = "POST";
webRequest.ContentType = "application/x-www-form-urlencoded";
Stream reqStream = webRequest.GetRequestStream();
string postData = "username=myusername&password=mypassword";
byte[] postArray = Encoding.ASCII.GetBytes(postData);
reqStream.Write(postArray, 0, postArray.Length);
reqStream.Close();
StreamReader sr = new StreamReader(webRequest.GetResponse().GetResponseStream());
string Result = sr.ReadToEnd();