Opened 4 years ago

Closed 4 years ago

Last modified 4 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 Version: 2.7.1
Severity: minor Keywords: has-patch dev-feedback
Cc:

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 4 years ago.

Download all attachments as: .zip

Change History (2)

comment:1   ryan4 years ago

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

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

Note: See TracTickets for help on using tickets.