Open Pieter3033 opened 11 months ago
Need to do the same thing here. Looks like you're at least missing a delimiter in your header string, I'm just not sure what that delimiter should be. I tried introducing newline characters like:
declare @hkey nvarchar(200) = N'Authorization: Bearer 12341234' + CHAR(10) + 'Accept: application/json';
and
declare @hkey nvarchar(200) = N'Authorization: Bearer 12341234' + CHAR(13) + 'Accept: application/json';
Those did not work and I got an error:
System.ArgumentException: Specified value has invalid CRLF characters.
In regards to : https://github.com/microsoft/sql-server-samples](https://github.com/Microsoft/sql-server-samples/tree/master/samples/features/sql-clr/Curl)
What is the Content Type of the CURL.XPOST procedure, I need it to be application/json.
I am unable to locate where it mentions what the Content Type is in the source code.
See below for reference:
Curl Syntax:
My CURL.XPOST procedure: