[wp-trac] [WordPress Trac] #30371: Allow for // rooted URLs in http request() calls (wp_remote_get(), etc)

WordPress Trac noreply at wordpress.org
Mon Nov 24 09:35:15 UTC 2014


#30371: Allow for // rooted URLs in http request() calls (wp_remote_get(), etc)
-------------------------------+------------------------------
 Reporter:  dmchale            |       Owner:
     Type:  enhancement        |      Status:  reopened
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  HTTP API           |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  2nd-opinion close  |     Focuses:
-------------------------------+------------------------------
Changes (by dd32):

 * keywords:   => 2nd-opinion close


Comment:

 I'm heavily leaning towards a schemeless URL is not a valid URL in this
 context. I'm also tempted to leave the error as 'A valid URL was not
 provided.', as that's a valid error for the context.

 A schemeless/protocol-less URL is only valid when used in the context of
 another URL, and there is no valid context when being passed directly to
 the HTTP API.

 We do handle a schemeless URL in a redirect however.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30371#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list