Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#9699 closed defect (bug) (fixed)

Invalid HTTP host sent when using WP_Http_Fsockopen over SSL

Reported by: mdawaffe Owned by:
Priority: high Milestone: 2.8
Component: HTTP API Version: 2.7.1
Severity: minor Keywords: has-patch dev-feedback
Cc: Focuses:

Description

When making an HTTPS connection via WP_Http_Fsockopen, the host header sent in the request is:

Host: ssl://example.com

It's prefixing the socket transport identifier. That's what you're supposed to do when calling fsockopen, not when sending the host header.

The correct host header is:

Host: example.com

Attached

Attachments (1)

9699.diff (2.2 KB ) - added by mdawaffe 17 years ago.

Download all attachments as: .zip

Change History (2)

@mdawaffe
17 years ago

#1 @ryan
17 years ago

  • Resolutionfixed
  • Status newclosed

(In [11154]) Send valid host when using WP_Http_Fsockopen over SSL. Props mdawaffe. fixes #9699

Note: See TracTickets for help on using tickets.