Jump to content

Issues with llHTTPRequest Response


Bones Outlander
 Share

You are about to reply to a thread that has been inactive for 489 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi,

I use this PHP script (found in the script library years ago) hosted on my internet hosting service to provide the current URL for my in-world update server.

<?php
$answer = "7a3c8787-5e71-a19f-a1b9-7958c8fc898c";
$xml = '<?xml version="1.0" encoding="ISO-8859-1"?>|' . strval($answer) . '|';
header('Content-type: text/xml');
echo($xml);
?> 

And I call this via these specific line of LSL code in my objects.

string outgoing_url = "http://www.lccb.org.au/bonesdesigns/avi-hud/update-relay.php";


kManualUpdateReq = llHTTPRequest(outgoing_url, [HTTP_METHOD, "GET"], "");

If I access the update-relay.php URL via a web browser on my desktop I get this response from the server:

<?xml version="1.0" encoding="ISO-8859-1"?>|7a3c8787-5e71-a19f-a1b9-7958c8fc898c|

Which is exactly what I'm expecting, BUT when my objects access the same URL from SL using the code above I get this returned:

<!doctype html>
<html lang="en-AU">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>
<meta name='robots' content='noindex, follow' />

	<!-- This site is optimized with the Yoast SEO plugin v19.13 - https://yoast.com/wordpress/plugins/seo/ -->
	<title>Page not found - LCCB</title>
	<meta property="og:locale" content="en_US" />
	<meta property="og:title" content="Page not found - LCCB" />
	<meta property="og:site_name" content="LCCB" />
	<script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"WebSite","@id":"https://www.lccb.org.au/#website","url":"https://www.lccb.org.au/","name":"LCCB","description":"The Lane Cove Concert Band","publisher":{"@id":"https://www.lccb.org.au/#organization"},"potentialAction":[{"@type":

This was all working fine up until recently (I don't know the exact time it broke I'm afraid), but can anybody suggest what might be going on please?

Thanks
Bones

Link to comment
Share on other sites

1 hour ago, Bones Outlander said:

can anybody suggest what might be going on please?

A domain-name conflict perhaps? Is your site associated somehow with the "Lane Cove Concert Band"? If not, you might need to reconfigure your host to use a different top-level url.

Link to comment
Share on other sites

1 hour ago, Bones Outlander said:
<!-- This site is optimized with the Yoast SEO plugin v19.13 - https://yoast.com/wordpress/plugins/seo/ -->

This would point that Yoast (the site's SEO plugin) is interfering with your script - you probably need to ensure that your script is excluded from any SEO optimizations.

Link to comment
Share on other sites

3 hours ago, Jenna Huntsman said:

This would point that Yoast (the site's SEO plugin) is interfering with your script - you probably need to ensure that your script is excluded from any SEO optimizations.

Disabling Yoast makes no difference, I still get a 404 Page not found error. (See attached entry from my WordPress logs.)

If I click on the link in the logs, the URL opens fine, it's only the HTTP Get for SL that gets the 404.

I'm sure it's probably a WordPress issue, I just need to find a way around it somehow. Although it is odd that it used to work and just stopped recently.

 

 

404.png

Edited by Bones Outlander
Link to comment
Share on other sites

8 hours ago, Bones Outlander said:

Disabling Yoast makes no difference, I still get a 404 Page not found error. (See attached entry from my WordPress logs.)

If I click on the link in the logs, the URL opens fine, it's only the HTTP Get for SL that gets the 404.

I'm sure it's probably a WordPress issue, I just need to find a way around it somehow. Although it is odd that it used to work and just stopped recently.

 

 

404.png

Have you tried using HTTPS instead of HTTP?

Most modern browsers enforce HTTPS, so HTTPS may be working properly, but HTTP may not be.

 

Link to comment
Share on other sites

  • 3 weeks later...
On 12/29/2022 at 8:31 AM, Xiija said:

Has this been resolved?

I can access it fine with my SL object.

 

I've just returned from 3 weeks overseas, but it looks like my update server started receiving requests again on 27th December.

So not sure what was broken, but it seems to be fine again now.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 489 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...