[vlc-commits] http: test proxy authentication
Rémi Denis-Courmont
git at videolan.org
Sun Apr 3 17:42:12 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 3 18:41:53 2016 +0300| [408e043c3f2266f0674f9fbd537bbd19696f958b] | committer: Rémi Denis-Courmont
http: test proxy authentication
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=408e043c3f2266f0674f9fbd537bbd19696f958b
---
modules/access/http/tunnel_test.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/access/http/tunnel_test.c b/modules/access/http/tunnel_test.c
index e68f668..fe7ad8f 100644
--- a/modules/access/http/tunnel_test.c
+++ b/modules/access/http/tunnel_test.c
@@ -74,6 +74,9 @@ static void proxy_client_process(int fd)
assert(!strcmp(host, "www.example.com"));
assert(port == 443);
+ assert(strstr(buf, "\r\nProxy-Authorization: Basic "
+ "QWxhZGRpbjpvcGVuIHNlc2FtZQ==\r\n") != NULL);
+
const char resp[] = "HTTP/1.1 500 Failure\r\n\r\n";
val = write(fd, resp, strlen(resp));
@@ -144,7 +147,7 @@ int main(void)
if (lfd == -1)
return 77;
- if (asprintf(&url, "http://[::1]:%u", port) < 0)
+ if (asprintf(&url, "http://Aladdin:open%%20sesame@[::1]:%u", port) < 0)
url = NULL;
assert(url != NULL);
More information about the vlc-commits
mailing list