Lines Matching refs:url
22 #include "libavformat/url.h"
25 static void test_decompose(const char *url)
30 printf("%s =>\n", url);
31 ret = ff_url_decompose(&uc, url, NULL);
83 static void test2(const char *url)
91 av_url_split(proto, sizeof(proto), auth, sizeof(auth), host, sizeof(host), &port, path, sizeof(path), url);
92 printf("%-60s => %-15s %-15s %-15s %5d %s\n", url, proto, auth, host, port, path);
105 test_decompose("test?url=http://server/path");
119 test("http://server/foo/bar/123", "https://other/url");
122 test("http://server/foo/bar", "//other/url");
123 test("http://server/foo/bar", "../../../../../other/url");
124 test("http://server/foo/bar", "/../../../../../other/url");
125 test("http://server/foo/bar", "/test/../../../../../other/url");
126 test("http://server/foo/bar", "/test/../../test/../../../other/url");