Reviewed & tested by the community
Project:
cURL HTTP Request
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2017 at 14:44 UTC
Updated:
7 Jan 2021 at 12:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
delzhand commentedPatch attached. You'll need to specify the port if you're providing a host manually, like so:
drupal_http_request($request_url, array('method' => $this->request->method, 'data' => $this->request->data, 'headers' => ['Host' => 'some.domain.tld:80']));Comment #3
silverham commentedPatch tested and works.
Seems the port is not required in the host header, it is picked up automatically in parse_url().
Comment #4
silverham commentedComment #5
stevetweeddale commentedThe maintainers, I believe this patch will conflict with the one in #2355631: Problem to retrieve info from MySpace - Flickr (patch provided), but both are worthwhile and different changes I think.