Skip to content
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

Bug: curl JSON formatting #114

Closed
Eisa01 opened this issue Nov 7, 2020 · 0 comments
Closed

Bug: curl JSON formatting #114

Eisa01 opened this issue Nov 7, 2020 · 0 comments

Comments

@Eisa01
Copy link

Eisa01 commented Nov 7, 2020

Currently curl does not have any type of formatting when requesting for JSON, this makes the information hard to read in CLI.
e.g.: The below is quick comparison between ipinfo.io and ifconfig.co, Please find the below for comparison purposes pasted directly from my CLI (some censoring have been applied).

curl ipinfo.io
{
  "ip": "86.**.1**.2*1",
  "hostname": "bba5***.alshamil.net.ae",
  "city": "Aj** City",
  "region": "SomeRegion",
  "country": "XX",
  "loc": "25.***,**.4**88",
  "org": "Censored",
  "timezone": "Censored",
  "readme": "https://ipinfo.io/missingauth"
}
curl ifconfig.co/json
{"ip":"86.**.1**.2*1","ip_decimal":293847892347892347,"country":"Censored","country_iso":"Censored","country_eu":false,"region_name":"SomeRegion","region_code":"Censored","city":"Aj**City","latitude":25.***,"longitude":4**88,"time_zone":"Censored","asn":"Censored","asn_org":"Censored","user_agent":{"product":"curl","version":"7.55.1","raw_value":"curl/7.55.1"}}

OS: Windows 10 Version 10.0.19041 Build 19041, using CMD
curl version: curl 7.55.1 (Windows) libcurl/7.55.1 WinSSL

@mpolden mpolden closed this as completed in cd687f6 Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant