curl / Mailing Lists / curl-library / 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: AW: library command that simulates the cur cmdline

From: Aleksandar Lazic via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 2 Aug 2023 13:30:38 +0200

Hi.

Please keep the ML in the loop.

On 2023-08-02 (Mi.) 12:20, f.nagy_at_aon.at wrote:
> Hello
>
> Thanks for the quick reply,
>
> unfortunately I can't do much with the command:
>
> "You could use `--libcurl libcurl.c` to get the C code".
>
> is it a parameter for git for curl or vcpkg ???

It's a parameter for the curl tool.
https://curl.se/docs/manpage.html#--libcurl

So your command could look like this.

```
curl.exe -k -S https://finanzonline.bmf.gv.at/fonws/ws/session -H
"Content-Type: text/xml;charset=UTF-8" -H "SOAPAction: login" -d
_at_login.xml --libcurl libcurl.c
```

I strongly recommend to read the documentation of the curl tool for the
explanation what this parameter do.

Regards
Alex

> mfg.
> F.Nagy
> Innsbruck
>
>
> -----Ursprüngliche Nachricht-----
> Von: Aleksandar Lazic <al-curllibrary_at_none.at>
> Gesendet: Mittwoch, 2. August 2023 11:40
> An: libcurl development <curl-library_at_lists.haxx.se>
> Cc: f.nagy_at_aon.at
> Betreff: Re: library command that simulates the cur cmdline
>
> Hi.
>
> On 2023-08-02 (Mi.) 11:10, Frigyes via curl-library wrote:
>> It occurs to me to have read that in the library there is a command
>> that simulates the cur cmdline command
>>
>> so instead of:
>>
>> curl.exe -k -S https://finanzonline.bmf.gv.at/fonws/ws/session
>> <https://finanzonline.bmf.gv.at/fonws/ws/session> -H "Content-Type:
>> text/xml;charset=UTF-8" -H "SOAPAction: login" -d @login.xml
>>
>> with the library:
>>
>> ...
>>
>> curl = curl_easy_init();
>>
>> if (curl) {
>>
>> curl_easy_setopt(curl, /CURLOPT_CMD???/, "-k -S
>> https://finanzonline.bmf.gv.at/fonws/ws/session
>> <https://finanzonline.bmf.gv.at/fonws/ws/session> -H \"Content-Type:
>> text/xml;charset=UTF-8\" -H \"SOAPAction: login\" -d @login.xml" );
>>
>> res = curl_easy_perform(curl);
>>
>> curl_easy_cleanup(curl);
>>
>> }
>>
>> ...
>>
>> gives the command or I just wished?
>
> You could use `--libcurl libcurl.c` to get the C Code.
>
>> Regards
>>
>> TIA
>>
>> Frigyes
>
> Best regards
> Alex
>
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-08-02