### ----------------------------------------------------
### -- LibCurl
### -- Licenses: NASA-1.3
### -- Authors: Curt Tilmes <Curt.Tilmes@nasa.gov>
### -- File: eg/httpcustomheader.raku
### ----------------------------------------------------
#!/usr/bin/env raku
use LibCurl::Easy;

my $curl = LibCurl::Easy.new(:verbose, URL => 'http://example.com');

# Remove a header curl would otherwise add by itself
$curl.set-header(Accept => '');

# Add a custom header
$curl.set-header(Another => 'yes');

# Modify a header curl otherwise adds differently
$curl.set-header(Host => 'www.example.com');

# Add a header with "blank" contents to the right of the colon
$curl.set-header(X-silly-header => ';');

say $curl.perform.content;


