curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Help Curl Windows

From: Paul Gilmartin via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 19 Jan 2021 07:28:14 -0700

On 2021-01-19, at 01:47:28, Kepa (Lan-1000 S.L.) via curl-users <curl-users_at_cool.haxx.se> wrote:
>
> I am trying to send a request to a REST type service, in POST mode. This using POSTMAN and the delivery is successful. The code generated by POSTMAN for curl is as follows.
>
> curl --location --request POST 'https://pruesarrerak.bizkaia.eus/N3B4000M/aurkezpena' --header 'Accept-Encoding: gzip' --header 'Content-Encoding: gzip' --header 'Content-Length: 10950' --header 'Content-Type: application/octet-stream' --header 'eus-bizkaia-n3-version: 1.0' --header 'eus-bizkaia-n3-content-type: application/xml' --header 'eus-bizkaia-n3-data: { "con": "LROE", "apa": "1.1", "inte": { "nif": "99999999S", "nrs": "AAAAA", "ap1": "AAAAAAAAAA", "ap2": " AAAAAAAAAA " }, "drs": { "mode": "140", "ejer": "2020" } }" ' --data-binary '_at_/[Path and file to send] '
>
> But that code doesn't work with curl for Windows. Does anyone know how to modify that code to work with curl Windwos? There are problems with single commas and quotes.
>
Ubuntu? Bash? Cygwin?

-- gil


-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-01-19