Jump to content

777gr

Resident
  • Posts

    5
  • Joined

  • Last visited

Everything posted by 777gr

  1. 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. 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...