Anonymous | Login | Signup for a new account | 2021-01-22 21:44 PST | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Summary | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0006738 | opensim | [REGION] Script Functions | public | 2013-08-13 19:23 | 2017-04-25 23:25 | |||||
Reporter | TechplexEngineer | |||||||||
Assigned To | ||||||||||
Priority | normal | Severity | trivial | Reproducibility | always | |||||
Status | new | Resolution | open | |||||||
Platform | Operating System | Operating System Version | ||||||||
Product Version | master (dev code) | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0006738: llHTTPRequest does not honor the number of Custom Headers | |||||||||
Description | According to the Secondlife WIki, llHTTPRequest should support having 8 custom headers. The script below works in SL but not opensim. (http://wiki.secondlife.com/wiki/LlHTTPRequest [^]) I'm assuming that the code that keeps track of the number of parameters in the list, is just a bit off, as having one custom header works. | |||||||||
Steps To Reproduce | 1. rez a prim 2. create a new script in the prim 3. add the following code inside the state_entry event llHTTPRequest("google.col", [HTTP_METHOD, "POST", HTTP_MIMETYPE, "text/plain", HTTP_CUSTOM_HEADER, "x-custom-header1", "someString" ,HTTP_CUSTOM_HEADER, "x-custom-header2", "someString2" ], "body"); 4. run the script 5. get nasty warning | |||||||||
Additional Information | Message from the "Script Warning/Error" window in the viewer: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> OpenSim.Region.ScriptEngine.Shared.ScriptException: Parameter 9 is an invalid flag at OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llHTTPRequest(String url, list parameters, String body) in C:\Users\Techplex.Engineer\Desktop\opensim-23ca1f8\OpenSim\Region\ScriptEngine\Shared\Api\Implementation\LSL_Api.cs:line 10663 at OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.llHTTPRequest(String url, list parameters, String body) in C:\Users\Techplex.Engineer\Desktop\opensim-23ca1f8\OpenSim\Region\ScriptEngine\Shared\Api\Runtime\LSL_Stub.cs:line 919 at SecondLife.Script.default_event_touch_start(LSLInteger number) in c:\Users\Techplex.Engineer\AppData\Local\Temp\tozdirhn.0.cs:line 16 --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAt | |||||||||
Tags | No tags attached. | |||||||||
Git Revision or version number | 23ca1f859e20e537572cb774943784d50d3cacb8 | |||||||||
Run Mode | Grid (1 Region per Sim) | |||||||||
Physics Engine | ODE | |||||||||
Script Engine | ||||||||||
Environment | .NET / Windows64 | |||||||||
Mono Version | None | |||||||||
Viewer | firestorm 4.4 | |||||||||
Attached Files | ||||||||||
![]() |
|
(0031809) UbitUmarov (administrator) 2017-04-25 23:25 |
did some changes that should fix this ... HTTP_CUSTOM_HEADER, "x-custom-header1", "someString1", "x-custom-header2", "someString2", ... (multiple pairs per line) should also work, well I hope.. |
![]() |
|||
Date Modified | Username | Field | Change |
2013-08-13 19:23 | TechplexEngineer | New Issue | |
2017-04-25 23:25 | UbitUmarov | Note Added: 0031809 |
Copyright © 2000 - 2012 MantisBT Group |