Bug #918
Only 1 Set-Cookie headers inestead of all in httpPost (and possibly httpGet)
Status: | Fixed | Start date: | 04/06/2012 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | % Done: | 100% | ||
Category: | Plugins | |||
Target version: | 3.6 | |||
Found in version: | 3.5.108-g6775194 | Platform: | Linux |
Description
When I request a page that returns in header field several Set-Cookie, Showtime will return only the bottom one, for example:
httpPost('http://veehd.com/video/4705315_Paranormal-Activity-3-2011-UNRATED-Blu-Ray-720p-mp4', null, null, null);
Set-Cookie: PHPSESSID=r7rnna44u36pc363b62ob6rq27; path=/; HttpOnly\r\n
Set-Cookie: pp=1333750310; expires=Fri, 20-Apr-2012 21:11:50 GMT; path=/\r\n
Set-Cookie: ppt=1; expires=Fri, 20-Apr-2012 21:11:50 GMT; path=/\r\n
Showtime returns to plugin this:
Set-Cookie: ppt=1; expires=Fri, 20-Apr-2012 21:11:50 GMT; path=/\r\n
This problem affects several websites including VeeHD, making it impossible to get the video link.
Associated revisions
js: Add new property 'multiheaders' to HTTP request return object
In this header (as different to the header property) each property
in the object is a list of strings rather than a single string.
This makes it possible to return multiple headers to the caller.
(such as multiple cookies set via Set-Cookie, etc)
Fixes #918
History
#1
Updated by Andreas Smas over 10 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset b984e9385797f73ce959a3192dd7e90c6f723692.
#2
Updated by Andreas Smas over 10 years ago
multiheaders is your friend.
Remember to depend on Showtime 3.5.112 or newer
#3
Updated by Fábio Ferreira over 10 years ago
Many thanks for fixing this issue :), will try it later.