Jump to content

777gr

Resident
  • Posts

    5
  • Joined

  • Last visited

Posts posted by 777gr

  1. Just now, Oz Linden said:

    Solution to what?

    Since the changes of llHTTPRequest, 1st I cannot use any SSL/https URL's without the LSL user agent, second of all since the update 95% of the day it returns error code 499 Client Closed Request to any page of my server. I have contacted my hosting provider (GoDaddy) and the LL support, and all points to the recent changes in llHTTPRequest.
    This is a working temporary fix until we know what to do.
    (Yes my server does allow the user agent Second-Life-LSL)

  2. 1 minute ago, Oz Linden said:

    The User-Agent value identifies the HTTP client, not the host (there is a 'Server' header that identifies the server). It's rarely true that you need to manipulate the user agent value unless the server you're accessing limits or modifies responses based on it.

    Please do not execute a request periodically just to keep a connection open... you're consuming simulator resources. Opening a connection is pretty inexpensive.

    I do not see another solution at the moment.

  3. How to fix all requests without editing other scripts
    FIX 499 ERROR

    Create an object with the script shown below;

    string yourDomain		=	"http://example.com/";		// Your main host domain (could also be an IP)
    string hostUserAgent		=	"Mozilla/5.0";			// Your host's PHP Variable: _SERVER["HTTP_USER_AGENT"]
    default
    {
        state_entry()
        {
            llSetTimerEvent(3600);
        }
        touch_start(integer a)
        {
          	if(llDetectedKey(0)==llGetOwner()){llHTTPRequest(yourDomain,[HTTP_METHOD,"GET",HTTP_USER_AGENT,hostUserAgent],"");}
        }
        timer()
        {
            llHTTPRequest(yourDomain,[HTTP_METHOD,"GET",HTTP_USER_AGENT,hostUserAgent],"");
        }
        http_response(key id,integer status,list meta,string data)
        {
          	/*
            llRegionSay(DEBUG_CHANNEL,"CODE:"+(string)status);
            llRegionSay(DEBUG_CHANNEL,"DATA:"+data);
        	*/
        }
    }

    Keep in mind when your host's user agent as example is
    'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0'
    Then the string hostUserAgent is 'Mozilla/5.0'

    As weird as it seems to look: By executing a valid request every x minutes/hours your host keeps the connection alive for quite a while.


    Dexter Morgan (777gr)

×
×
  • Create New...