Avatar of sukhoi35
sukhoi35

asked on 

Replicating a curl command on Windows

Hello Experts,

I am required to run a curl command from a windows machine. I am trying to replicate the same through Postman by building the request. The curl command looks like:


curl -v -X GET "https://sample.cloud.com" -H "accept:application/hal+json" -H "Authorization: xxxxxx" - "Content-Type: application/json" -H "key: yyyyyy"


I have the below Postman request, however not sure if just adding all the -H above as header would suffice. Please let me know if the request I have built relates to the above curl command. Any inputs appreciated, thanks.

User generated image

Java* postman* CurlLinuxHTTP Protocol

Avatar of undefined
Last Comment
Gerwin Jansen
ASKER CERTIFIED SOLUTION
Avatar of Chinmay Patel
Chinmay Patel
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Assuming you already have cURL for Windows, if not: https://curl.se/windows/
Java
Java

Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo