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