Jump to content

Bruce Liebknecht

Resident
  • Posts

    22
  • Joined

  • Last visited

Reputation

2 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I store agent UUIDs in my database and want to show the current agent legacy or display names on my website given the agent UUID. Is there a way to do this? I searched a lot but can't find a way. Thanks! I have found how to work around this problem by storing and updating agent's names in my database as well but it is very inefficient this way.
  2. Thanks a lot! Problem solved! It was the secure vs insecure URL. When Hostgator stopped working for me I tried everything including I changed llRequestURL() to llRequestSecureURL(). When I moved to Bluehost things were not working either. Now I changed back to llRequestURL() and Bluehost works yay. OMG this was terribly frustrating. Thanks all for the discussion. It helped a lot.
  3. The hosting companies keep asking me what are the SL requirements for incoming HTTP requests. All I can tell them is open ports 12043, 12046 and enable curl.... That's why I wonder if there is anything else I am missing. Hostgator stopped working for me and they have no clue why. Now I tried dedicated server on Bluehost, doesn't work either...
  4. Yes, I tried the two examples linked in the other thread. Neither of them reaches my LSL scripts. The requests do not arrive. The same with curl. The example with fsockopen fails at fsockopen on port 12043. I had that port enabled for outgoing TCP.
  5. I am transferring my PHP scripts (that send HTTP requests to SL) to another host. The new host has curl enabled and ports 12043 and 12046 for outgoing HTTP requests. Still my LSL scripts do not receive the HTTP requests. The same PHP and LSL scripts worked fine for years until last Wednesday. Are there any other requirements for the settings of the external server? Thanks!
  6. Thank you very much! Is there a list of web hosting providers who are confirmed to be working well with SL? Meaning, that are confirmed to be able to send HTTP requests to SL?
  7. Thanks! I've asked them and they have been working on it for hours now....... Is there any other PHP example out there I can try, for sending an HTTP request to SL?
  8. Thank you, Jenna! Do you mean that my web host has disabled HTTP requests on port 12043? This port 12043 comes from the SURL granted to my object in SL that receives the HTTP requests. The original address is https://simhost-00a87dc0fe6fa060a.agni.secondlife.io:12043/cap/8b3ebe81-2ecc-d90c-ec74-fae3689e91cf/ The function above takes the port 12043 from it and sends a request to ssl://simhost-00a87dc0fe6fa060a.agni.secondlife.io
  9. A little update. I replaced by curl request by the simpler request from the SL wiki: function Advanced_HTTP_Request($Host, $PostData = "") { $Method = "POST"; if (empty($PostData)) {$Method = "GET";} $Port = 80; if (strtolower(substr($Host, 0, 5)) == "https") {$Port = 443;} $Host = explode("//", $Host, 2); if (count($Host) < 2) {$Host[1] = $Host[0];} $Host = explode("/", $Host[1], 2); if ($Port == 443) {$SSLAdd = "ssl://";} $Host[0] = explode(":", $Host[0]); if (count($Host[0]) > 1) { $Port = $Host[0][1]; $Host[0] = $Host[0][0]; } else {$Host[0] = $Host[0][0];} $Socket = fsockopen($SSLAdd.$Host[0], $Port, $Dummy1, $Dummy2, 10); if ($Socket) { fputs($Socket, "$Method /$Host[1] HTTP/1.1\r\n". "Host: $Host[0]\r\n". "Content-type: application/x-www-form-urlencoded\r\n". "User-Agent: Opera/9.01 (Windows NT 5.1; U; en)\r\n". "Accept-Language: de-DE,de;q=0.9,en;q=0.8\r\n". "Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1\r\n". "Content-length: ".strlen($PostData)."\r\n". "Connection: close\r\n". "\r\n". $PostData); $Tme = time(); while(!feof($Socket) && $Tme + 30 > time()) {$Res = $Res.fgets($Socket, 256);} fclose($Socket); } $Res = explode("\r\n\r\n", $Res, 2); return $Res[1]; } ?> This is from https://wiki.secondlife.com/wiki/LSL_HTTP_server/examples. In this function fsockopen fails and the parameters it is called with are: $Host = ssl://simhost-00a87dc0fe6fa060a.agni.secondlife.io $Port = 12043 $Dummy1 = 111 $Dummy2 = Connection refused
  10. I should add, these are curl HTTP requests I am sending from outside.
  11. Hi All, I have a system in which scripts in SL receive HTTP requests from PHP scripts outside SL. All has been working fine for years until yesterday when it suddenly stopped. My LSL scripts stopped receiving http requests sent to them. Is there something going on that I am not aware of?
  12. Sorry, it was a problem on my side, which I fixed.
×
×
  • Create New...