WordPress.org

Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#7522 closed defect (bug) (fixed)

plugins_api() does not fetch plugin information since moving to wp_remote_post()

Reported by: ryan Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

api.wordpress.org is returning a "Slug not provided" error. Works on one blog but not on another.

Attachments (3)

plugins_api_debug.txt (1.7 KB) - added by ryan 13 years ago.
plugins_api_header_resp.txt (787 bytes) - added by ryan 13 years ago.
Dump of $strHeader and $strResponse from WP_Http_Fsockopen::request()
7522.diff (601 bytes) - added by ryan 13 years ago.

Download all attachments as: .zip

Change History (11)

#1 @ryan
13 years ago

Debug attached. A blog using the same get and post transports as the failed blog works fine.

#2 @jacobsantos
13 years ago

Might have to do with the different transports. I've not seen this problem. Can you send what is being transferred, I might be able to write a test script for debugging.

@ryan
13 years ago

Dump of $strHeader and $strResponse from WP_Http_Fsockopen::request()

#3 @ryan
13 years ago

A little more debug.

#4 follow-up: @ryan
13 years ago

arg_separator.output is '&' on the broken blog. http_build_query() uses '&' instead of '&' to builf the body in that case.

@ryan
13 years ago

#5 in reply to: ↑ 4 @jacobsantos
13 years ago

Replying to ryan:

arg_separator.output is '&' on the broken blog. http_build_query() uses '&' instead of '&' to builf the body in that case.

Build query should then define the arg separator parameter to be '&' always. Easy fix then.

#6 @jacobsantos
13 years ago

Okay, yeah, you already had a patch that does that.

#7 @jacobsantos
13 years ago

I'm glad it was an easy fix.

#8 @ryan
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [8648]) Always use '&' as arg separator when building the body. fixes #7522

Note: See TracTickets for help on using tickets.