-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows curl output not formatted. #68
Comments
in cmd it outputs like the following.
|
This issue was previously addressed in here. You should have a look at your |
duplicate of #6 |
i don't use the curl wich ships with windows 10 as far as i know i'm using
the one i downloaded with chocolatey wich is the latest available on
windows.
(also it works in bash just not in ps or cmd)
Op zo 22 mrt. 2020 om 14:32 schreef XhmikosR <[email protected]>:
… Not a duplicate of #65
<#65>, but a
duplicate of #6
<#6>. The
solution to that is to not use the curl which sips with Windows 10 since
it's severely outdated, but instead use the latest curl version from their
website.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#68 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADH6HSNSAEI6XDBOBPOKOWTRIYHPLANCNFSM4LRHIWVA>
.
|
You probably aren't though. Do |
@NicTanghe You are using powershell right? If you are, curl is aliased to |
windows is probably just usyng the system32 curl. can i delete that one and should it then work ? and yes i'm using powershell. |
Invoke-RestMethod "https://corona-stats.online/Japan" -UserAgent "curl"
(Invoke-WebRequest "https://corona-stats.online/" -UseBasicParsing -UserAgent "curl").Content
[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false)
curl.exe "https://corona-stats.online/" | Write-Output
chcp 65001
curl.exe "https://corona-stats.online/" -o corona
type corona There are two different problems;
a better command in PowerShell Invoke-RestMethod "https://corona-stats.online/" -UserAgent "curl" |
What powershell version are you running? ($PSVersionTable |Select-Object PSVersion ) | Format-Table -hideTableHeader |
I also have this problem too. But both on Linux and macOS.
EDIT: Updated to 7.70.0, problem persisted. |
works with invoke method. |
so when i run
curl https://corona-stats.online
on windows i get this.havent realy used curl on windows before.
The text was updated successfully, but these errors were encountered: