Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Main Repository

Disclaimer

This code example best suits people with at least a beginner's experience using the C# programming language.

Prerequisites

To run this code you'll need a C# compiler such as Visual Studio. You can follow this tutorial to create a simple Visual Basic console application.

You should also have a Decodo account with access to the dashboard to get your credentials and endpoint information.

Installation

The example is built using Visual Studio. You can run it by following these steps:

  1. Create a new Console App.
  2. Using a terminal of your choice, navigate to the project's directory.
  3. Copy the code from here or run this cURL command to download the code:

curl https://raw.githubusercontent.com/Decodo/Decodo/master/csharp/csharp.cs > csharp.cs

  1. You should see a new file named csharp.cs in your project folder.

Usage

To run this C# example, set your username, password, and endpoint information you'd like to use and enter them in the following sections of the code:

var proxy = new WebProxy("gate.decodo.com:7000")
{
    UseDefaultCredentials = false,

    Credentials = new NetworkCredential(
        username: "username",
        password: "password",
    )
};

You should see an IP address in the console window if everything was set up correctly.

Need help?

Email - [email protected]

Live chat 24/7