gosoap icon indicating copy to clipboard operation
gosoap copied to clipboard

Control the Accept header

Open gbonnefille opened this issue 1 year ago • 0 comments

I'm using an old, probably misconfigured, SOAP service running on PHP.

Currently, the call fails due to a 406 error. I identified (reproducing with curl) that the problem is the Accept header.

When defaulted to "/" by curl, it works. But gosoap enforces it to "text/xml" and in this case it fails.

Is it possible to evolve gosoap to offer a control over this header? I can do the change and propose a PR if you agree.

gbonnefille avatar Jan 24 '23 13:01 gbonnefille