[Bug 657422] New: [souphttpsrc] The souphttpsrc plugin doesn't work behind a proxy that requires authentication
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Aug 26 03:32:11 PDT 2011
https://bugzilla.gnome.org/show_bug.cgi?id=657422
GStreamer | gst-plugins-good | git
Summary: [souphttpsrc] The souphttpsrc plugin doesn't work
behind a proxy that requires authentication
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-good
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: konstantin.miller at gmail.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created an attachment (id=194808)
View: https://bugzilla.gnome.org/attachment.cgi?id=194808
Review: https://bugzilla.gnome.org/review?bug=657422&attachment=194808
Patch
Using Gstreamer and the souphttpsrc plugin to connect to a HTTP server from
behind a proxy that requires authentication fails with the error: Proxy
Authentication Required, although username and password are provided at the
command line.
Can be reproduced by the following command:
gst-launch -v souphttpsrc location=http://google.com proxy=http://name:port/
proxy-id=username proxy-pw=password ! filesink location=./output.txt
As far as I can see, the problem is as follows. The libsoup library that is
used by souphttpsrc would send a GET request without proxy authentication data,
receive the 407 Proxy Authentication Required reply, and resend GET including
authentication data. The souphttpsrc plugin never resends the GET. Instead, it
produces an error due to a call to the gst_soup_http_src_parse_status function
before soup_auth_authenticate is called.
If I'm not missing something and this is really a bug, it could be fixed by
adding one line in the gst_soup_http_src_got_headers_cb function of the plugin.
The patch is attached. It has the effect that 407 Proxy Authentication Required
is not interpreted as a fatal error if proxy authentication data is available,
so that the authentication can be performed.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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