Hi,
I'm trying to use a proxy to debug a script and I need to an SSL intercepting proxy Burp Proxy but when doing testing I've discovered that Cro::HTTP::Client is actually doing an HTTP request on port 443 instead of a HTTPS one:
> use Cro::HTTP::Client
> my $ua = Cro::HTTP::Client.new(:cookie-jar);
> %*ENV{'HTTPS_PROXY'}='http://127.0.0.1:8080'
http://127.0.0.1:8080
> my $r=await $ua.get: 'https://www.bt.com';
An operation first awaited:
in block <unit> at <unknown file> line 1
Died with the exception:
Server responded with 400 Bad Request (GET http://127.0.0.1:8080)
in block at .rakubrew/versions/moar-2023.06/share/perl6/site/sources/3D7AE8DD442BE31392D93ECFBF0B6CACEC0825D6 (Cro::HTTP::Client) line 676
Do you have any idea why it's behaving this way ?