#10588 closed task (blessed) (fixed)
Use WP HTTP API in IXR_Client
Reported by: | andy | Owned by: | westi |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 2.8.3 |
Component: | XML-RPC | Keywords: | XMLRPC, IXR, dev-feedback |
Focuses: | Cc: |
Description
IXR_Client calls fsockopen directly. Thus blogs behind proxies can not connect to remote XMLRPC services. To take advantage of the proxy support added in [10692], IXR_Client should use wp_remote_post.
Attachments (2)
Change History (16)
#3
@
15 years ago
+1 as well, I like it. It should see if the wp_remote_post is available and use it as a preference, but fall back to the current behavior.
#4
@
15 years ago
josephscott, wp_remote_post is defined when http.php is included in wp-settings.php. The only user-installed code that could precede that is advanced-cache.php. I don't think it would be worth maintaining the fsockopen code just to ensure the availability of XMLRPC in advanced-cache.php.
#5
@
15 years ago
I asked to preserve the code for the sake of this being a 3rd party library and being able to merge changes back. If we make IXR require wp_remote_post then IXR it becomes useless as a 3rd party library. It wasn't a question of the wp_remote_post function being available to IXR at the point in the code execution.
This is something the WordPress has struggled with in many cases. Importing 3rd party libraries and then making hard/impossible to merge changes back. I'd rather not see that happen in this case.
#6
@
15 years ago
- Type changed from defect (bug) to enhancement
Abstract the HTTP and send that back. If it is abstracted enough, you can replace the IXR HTTP with the WordPress HTTP like in SimplePie.
#9
@
14 years ago
- Owner changed from andy to westi
- Type changed from enhancement to task (blessed)
I'm going to ensure this makes it into 3.1 :-)
Thanks for the updated patch
#10
@
14 years ago
- Keywords dev-feedback added
@westi: Want to check the last patch and make any edits necessary to get it in before 3.1 freeze?
+1
This sounds like a good idea.