Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006738opensim[REGION] Script Functionspublic2013-08-13 19:232017-04-25 23:25
ReporterTechplexEngineer 
Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006738: llHTTPRequest does not honor the number of Custom Headers
DescriptionAccording 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 Reproduce1. 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 InformationMessage 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
TagsNo tags attached.
Git Revision or version number23ca1f859e20e537572cb774943784d50d3cacb8
Run Mode Grid (1 Region per Sim)
Physics EngineODE
Script Engine
Environment.NET / Windows64
Mono VersionNone
Viewerfirestorm 4.4
Attached Files

- Relationships

-  Notes
(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..

- Issue History
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
Powered by Mantis Bugtracker