[Bug 751371] souphttpsrc: custom query of user-agent and cookie

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Jul 21 15:57:00 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=751371

--- Comment #11 from Thiago Sousa Santos <thiagossantos at gmail.com> ---
Created attachment 307873
  --> https://bugzilla.gnome.org/attachment.cgi?id=307873&action=edit
test application to show cookies being preserved with cookiejar support

This test application receives a list of urls and downloads them using
souphttpsrc, then prints the cookies property content.

Build with: libtool --mode=link gcc souphttpsrc-cookies.c -o
souphttpsrc-cookies `pkg-config --cflags --libs gstreamer`

Without the cookiejar support the cookies list will always be empty as the user
hasn't set any, when the cookiejar support is enabled it will increase over
time as it gathers more cookies.

The proposed patch atm will always add the new cookies set to the cookiejar and
apparently provides no way of removing cookies. So, before reviewing this
further let's decide on what to support regarding cookies.

I can think of no drawbacks of haiving cookiejar enabled but what to do with
the current cookies property? For example, suppose the cookie jar contains
cookies A, B and the user sets a list with a single entry C. Should A and B be
removed or just add C?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list