<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1252"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
The error was related to cURL. <br>
<br>
My service accepts user input via a HTML form. Users that provide a
blog URL of <a class="moz-txt-link-freetext" href="http://mysite.com">http://mysite.com</a> when the blog's true URL is
<a class="moz-txt-link-freetext" href="http://www.mysite.com">http://www.mysite.com</a> were getting the error. cURL doesn't resolve
properly.<br>
<br>
I know that cURL has an option for redirection and that was the initial
fix. However, because redirection waits for a timeout before trying
"the next URL", there was a major drag on loadtimes. Therefore, I am
doing the URL check programatically. If wp.getOptions() doesn't throw
an error and its values are null, that's a signal that something went
wrong. At that point, I use PHP to add the "www" to the user's URI and
re-run wp.getOptions(). It works.<br>
<br>
A look at the server shows that the cURL function throws a -1 error so
that's probably another way to troubleshoot.<br>
<br>
Thanks for your help. Hopefully, this thread will help somebody else.<br>
<br>
<br>
Daniel Jalkut wrote:
<blockquote
cite="mid:1429C6E6-5950-4AE4-98F8-F03DC35894C6@red-sweater.com"
type="cite">
<pre wrap="">On Jan 6, 2010, at 10:06am, Dan Green wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Have you ever run into something like this? I am sure there’s a logical explanation — I just can’t figure it out. And before I start digging into somebody else's server configuration, I thought I'd ask the group if this is a common issue with a simple work-around.
</pre>
</blockquote>
<pre wrap=""><!---->
Hi Dan - first thing I would look into, which you didn't mention one way or the other, is whether the installed plugins are different on the affected and unaffected servers.
Whenever I see unexpected results from the API, I usually suspect plugin interference as a first line of inquiry.
Daniel
_______________________________________________
wp-xmlrpc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:wp-xmlrpc@lists.automattic.com">wp-xmlrpc@lists.automattic.com</a>
<a class="moz-txt-link-freetext" href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a>
</pre>
</blockquote>
</body>
</html>