using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;
using System.Security.Cryptography.X509Certificates;
using System.Net.Security;
namespace LeadPostSSL
{
class Program
{
static void Main(string[] args)
{
// Set username/password
NetworkCredential myCredentials = new NetworkCredential(\"\", \"\");
myCredentials.UserName = \"test\";
myCredentials.Password = \"test\";
// Create a request using a URL that can receive a post.
WebRequest request = WebRequest.Create(\"https://web.test.com:8889/invoke/Rol/postLead\");
// Set the credential
request.Credentials = myCredentials;
// Set the Method and Timeout property of the request to POST.
request.Method = \"POST\";
request.Timeout = 100000;
// Set certificate......
Join Now or Login to view the rest of this paper.
Approximate Word Count: 933
Approximate Pages: 4 (260 words per double-spaced page) |