![](http://content.invisioncic.com/Mseclife/set_resources_8/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
DaveDurant
-
Posts
3 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Posts posted by DaveDurant
-
-
That didn't seem to help.
Any other ideas for being able to set the Content-Type?
-
Hi,
I'm trying to do a POST with llHttpRequest and need to set a HTTP_CUSTOM_HEADER for a specific Content-Type.
When I try this, I get a script error: HTTP_CUSTOM_HEADER value is an invalid header.
ContentType and Content_Type do not produce this script error. Just "a-b" does not have the error either, so I think this is something looking explicitly at Content-Type.
Any tips? I don't control the server side and it wants a Content-Type.
llHttpRequest with Content-Type header
in LSL Scripting
Posted
Huh.. You are indeed correct - sorry, I didn't thoroughly retest. My bad.
The script is trying to do an OAuth 2 login to a CRM system. Google says, and says only, that the error I'm getting means it's missing the correct Content-Type header in the POST. I changed the URL http://httpbin.org/post and the right headers are in there.
Weird. Time for more digging, I guess. TY!