#37918 closed defect (bug) (duplicate)
wp_remote_get skips first line under some cirumstances
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6 |
Component: | HTTP API | Keywords: | |
Focuses: | Cc: |
Description
I am using a WP plugin called "amr event lists with ical files" to display an event list from a google calendar. The plugin uses wp_remote_get to get the calendars ics data. Under some circumstances the return value of wp_remote_get lacks the first line of the calendar ("BEGIN:VCALENDAR"). The plugins author and I tried to figure out in what circumstances this happens, but without success.
There is an example URL showing the described effect used in my WP page: https://calendar.google.com/calendar/ical/ldncnjg2a0tjv7f36p4kri9eqg%40group.calendar.google.com/public/basic.ics
Getting this URL with wget or curl results in consistent calendar data, getting it via wp_remote_get the first line is missing. This happens since WP 4.6, no problem in earlier versions.
Change History (3)
#1
@
9 years ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
Duplicate of #37839.