• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-3308
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: kelly linden
Reporter: SignpostMarv Martin
Votes: 14
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC
SVC-1086

Ability to set Content-Type, aka "Internet Explorer users can see served HTML, everybody else can't"

Created: 24/Oct/08 06:32 PM   Updated: 24/Sep/09 12:33 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 1.25 Server

Issue Links:
Relates
 

Last Triaged: 24/Oct/08 07:10 PM
Linden Lab Issue ID: DEV-22866


 Description  « Hide
Due to the "loveliness" that is everyone's favourite mis-behaving browser, HTML can be served from an LSL script to a person using Internet Explorer, but nobody else (though I have developed a Userscript for Firefox to allow it).

http://www.howtocreate.co.uk/wrongWithIE/?chapter=Content-type%3A+text%2Fplain

"If you send a header that says that you are using plain text, but it contains something that IE thinks is HTML, it will ignore your header, and render it as HTML."

Not having the ability to set the correct MIME type at launch will create a rather unbalanced playing field, where developers targeting IE users would have a distinct advantage over developers targeting demographics where IE is either not used or not available.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
SignpostMarv Martin made changes - 24/Oct/08 06:36 PM
Field Original Value New Value
Description Due to the "loveliness" that is everyone's favourite mis-behaving browser, HTML can be served from an LSL script to a person using Internet Explorer, but nobody else (though I have developed a Userscript for Firefox to allow it).

http://www.howtocreate.co.uk/wrongWithIE/?chapter=Content-type%3A+text%2Fplain

"If you send a header that says that you are using plain text, but it contains something that IE thinks is HTML, it will ignore your header, and render it as HTML."

Not having the ability to set the correct MIME type at launch will create a rather unbalanced playing field, where developers targeting IE users would have a distinct advantage over developers targeting demographics where IE is either not used or not available.
lindenrobot made changes - 24/Oct/08 07:09 PM
Last Triaged 24/Oct/08 07:10 PM
Linden Lab Issue ID DEV-22866
Periapse Linden made changes - 28/Oct/08 09:52 AM
Link This issue Relates to SVC-3238 [ SVC-3238 ]
Sue Linden made changes - 13/Nov/08 12:06 PM
Workflow jira-2007-12-22a [ 60909 ] jira-2008-11-14 [ 81471 ]
Sue Linden made changes - 13/Nov/08 04:34 PM
Workflow jira-2008-11-14 [ 81471 ] jira-2008-11-14a [ 88319 ]
Sue Linden made changes - 13/Nov/08 04:58 PM
Workflow jira-2008-11-14 [ 88319 ] jira-2008-11-14a [ 96534 ]
kelly linden made changes - 14/Jan/09 02:33 PM
Status Open [ 1 ] Fix Pending [ 10001 ]
Assignee kelly linden [ kelly linden ]
Periapse Linden made changes - 14/Jan/09 02:50 PM
Link This issue is related to by SVC-3238 [ SVC-3238 ]
Periapse Linden made changes - 14/Jan/09 02:51 PM
Link This issue Relates to SVC-3238 [ SVC-3238 ]
kelly linden made changes - 02/Feb/09 10:21 AM
Status Fix Pending [ 10001 ] Resolved [ 5 ]
Fix Version/s 1.25 Server [ 10380 ]
Resolution Fixed [ 1 ]
phate shepherd made changes - 17/Jul/09 09:35 AM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
kelly linden made changes - 17/Jul/09 09:51 AM
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
phate shepherd made changes - 17/Jul/09 12:32 PM
Link This issue is related to by SVC-4582 [ SVC-4582 ]
Day Oh made changes - 24/Sep/09 12:33 PM
Comment [ Using on-demand javascript to return data in a form that can be consumed by a web browser

{code}
string gUrl;
key gRequestId;

response(list avatars)
{
    string out = "gotAvatars(new Array(";
    integer t = llGetListLength(avatars);
    integer i;
    for(i = 0; i < t; i++)
    {
        if(i)
            out += ",";
        out += "\"" + llList2String(avatars, i) + "\"";
    }
    out += "));";
    llHTTPResponse(gRequestId, 200, out);
}

default
{
    state_entry()
    {
        llSetText("touch this", <1.0, 1.0, 1.0>, 1.0);
        llRequestURL();
    }

    on_rez(integer param)
    {
        llRequestURL();
    }
    
    touch_start(integer t)
    {
        llLoadURL(llDetectedKey(0), "go here", "http://phree.byethost8.com/test.php?url=" + gUrl);
    }

    http_request(key id, string method, string body)
    {
        if(method == URL_REQUEST_GRANTED)
        {
            gUrl = body;
        }
        else
        {
            gRequestId = id;
            llSensor("", "", AGENT, 96.0, PI);
        }
    }
    
    sensor(integer t)
    {
        list avatars;
        integer i;
        for(i = 0; i < t; i++)
        {
            avatars += [llDetectedName(i)];
        }
        response(avatars);
    }
    
    no_sensor()
    {
        response([]);
    }
}
{code} ]