Re: Euphoria SOAP client

new topic     » goto parent     » topic index » view thread      » older message » newer message

Update:

To enable the SOAP request/response mechanism to work over HTTP, one HTTP header needs to be changed and one added.

The default header of "Content-Type: text/html" needs to change to "Content-Type: text/xml"

For this implementation a header "SOAPaction: xxxxx" was required, where 'xxxxx' might be 'login' or similar.

There is a constant, CURLOPT_HTTPHEADER, to pass to the function curl_easy_setopt. CURLOPT_HTTPHEADER had to be added to the list of constants. But curl_easy_setopt still couldn't use that constant correctly, as the paramater passed to the function needs to be a pointer to a linked list of headers to set.

This list is created with two more curl functions, curl_slist_append() and curl_slist_free_all(). I wrote function calls to those, and all was well.

Anyone who would like this revised eulibcURL.ew file is welcome to a copy.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu