Open apatel-rms opened 6 years ago
Making the following modification within the PrepareCurlRequest function does the trick
' Set headers and cookies
For Each web_KeyValue In request.Headers
web_Curl = web_Curl & "\" & Chr(10) & " -H '" & web_KeyValue("Key") & ": " & web_KeyValue("Value") & "'"
Next web_KeyValue
Cool, thanks for raising this issue @apatel-rms I'll make the fix soon
When a curl request has more than 1023 characters, VBA inserts a new line into the string web_Curl within WebClient. This can cause the WebHelpers.ExecuteInShell(web_curl) function to fail as the curl request is incomplete on a single line.
This can be fixed by creating a multi-line curl command instead and allowing the request to go over multiple lines.