You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
[5] > %*ENV{'HTTPS_PROXY'}='http://127.0.0.1:8080'
http://127.0.0.1:8080
[6] > await Cro::HTTP::Client.new.get: 'https://www.google.com',query => {q => 'test.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
actual request sent is [00:25:05.389][127.0.0.1:52368] 127.0.0.1:52368: Bad HTTP request line: b'GET https://www.google.com?q=test.com?q=test.com HTTP/1.1' with ?q=test.com?q=test.com being the bogus part.
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:
Do you have any idea why it's behaving this way ?
The text was updated successfully, but these errors were encountered: