Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending cookies in a SOAP request using Suds

I'm trying to access a SOAP API using Suds. The SOAP API documentation states that I have to provide three cookies with some login data. How can I accomplish this?

like image 935
Bram Avatar asked Nov 26 '25 01:11

Bram


1 Answers

Set a "Cookie" HTTP Request Header having the required name/value pairs. This is how Cookie values are usually transmitted in HTTP Based systems. You can add multiple key/value pairs in the same http header.

Single Cookie

Cookie: name1=value1

Multiple Cookies (seperated by semicolons)

Cookie: name1=value1; name2=value2

like image 159
Thiyagaraj Avatar answered Nov 27 '25 16:11

Thiyagaraj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!