Sample code for 30+ languages & platforms
Java

Example: Rest.AddHeader method

Demonstrates the AddHeader method.

Chilkat Java Downloads

Chilkat2 Java
import com.chilkatsoft.chilkat2.Rest;

public class ChilkatExample {

    public static void main(String[] args) {
        Rest rest = new Rest();

        rest.addHeader("User-Agent", "MyApplication/1.0");

        // ...
        // ...
        // ...
    }
}