/haiku/src/tests/kits/net/libnetapi/ |
H A D | NetworkUrlTest.cpp | 46 BUrl url("http://ewe:pea@www.something.co.nz:8888/some/path?key1=value1#fragment"); in TestValidFullUrl() local 47 CPPUNIT_ASSERT(url.IsValid()); in TestValidFullUrl() 48 CPPUNIT_ASSERT(url.Protocol() == "http"); in TestValidFullUrl() 49 CPPUNIT_ASSERT(url.HasProtocol()); in TestValidFullUrl() 50 CPPUNIT_ASSERT(url.UserName() == "ewe"); in TestValidFullUrl() 51 CPPUNIT_ASSERT(url.HasUserName()); in TestValidFullUrl() 52 CPPUNIT_ASSERT(url.Password() == "pea"); in TestValidFullUrl() 53 CPPUNIT_ASSERT(url.HasPassword()); in TestValidFullUrl() 54 CPPUNIT_ASSERT(url.Host() == "www.something.co.nz"); in TestValidFullUrl() 55 CPPUNIT_ASSERT(url.HasHost()); in TestValidFullUrl() [all …]
|
/haiku/src/tests/kits/net/service/ |
H A D | UrlTest.cpp | 66 BUrl url("http:"); in TestIsValid() local 68 !url.IsValid()); in TestIsValid() 70 url.SetHost("<invalid>"); in TestIsValid() 71 CPPUNIT_ASSERT_MESSAGE("Set to an invalid host", !url.IsValid()); in TestIsValid() 73 url.SetUrlString(""); in TestIsValid() 74 url.SetProtocol("\t \n"); in TestIsValid() 75 CPPUNIT_ASSERT_MESSAGE("Set a protocol with whitespace", !url.IsValid()); in TestIsValid() 76 url.SetProtocol("123"); in TestIsValid() 77 CPPUNIT_ASSERT_MESSAGE("Set an all-digits protocol", !url.IsValid()); in TestIsValid() 79 url.SetUserName("user"); in TestIsValid() [all …]
|
H A D | CookieTest.cpp | 41 BUrl url("http://www.chipchapin.com/WebTools/cookietest.php"); in SimpleTest() local 48 result = jar.AddCookie("testcookie1=present;", url); in SimpleTest() 53 result = jar.AddCookie(buffer, url); in SimpleTest() 58 result = jar.AddCookie(buffer, url); in SimpleTest() 66 result = jar.AddCookie(buffer, url); in SimpleTest() 88 BUrl url("http://testsuites.opera.com/cookies/001.php"); in StandardTest() local 89 result = jar.AddCookie("001=1", url); in StandardTest() 92 url.SetUrlString("http://testsuites.opera.com/cookies/001-1.php"); in StandardTest() 93 const BNetworkCookie* cookie = _GetCookie(jar, url, "001"); in StandardTest() 114 BUrl url("http://testsuites.opera.com/cookies/003.php"); in ExpireTest() local [all …]
|
/haiku/src/kits/network/libnetservices/ |
H A D | UrlProtocolRoster.cpp | 25 BUrlProtocolRoster::MakeRequest(const BUrl& url, BDataIO* output, in MakeRequest() argument 29 if (url.Protocol() == "http") { in MakeRequest() 30 return new(std::nothrow) BHttpRequest(url, output, false, "HTTP", in MakeRequest() 32 } else if (url.Protocol() == "https") { in MakeRequest() 33 return new(std::nothrow) BHttpRequest(url, output, true, "HTTPS", in MakeRequest() 35 } else if (url.Protocol() == "file") { in MakeRequest() 36 return new(std::nothrow) BFileRequest(url, output, listener, context); in MakeRequest() 37 } else if (url.Protocol() == "data") { in MakeRequest() 38 return new(std::nothrow) BDataRequest(url, output, listener, context); in MakeRequest() 39 } else if (url.Protocol() == "gopher") { in MakeRequest() [all …]
|
H A D | NetworkCookie.cpp | 37 const BUrl& url) in BNetworkCookie() argument 43 SetDomain(url.Host()); in BNetworkCookie() 45 if (url.Protocol() == "file" && url.Host().Length() == 0) { in BNetworkCookie() 50 SetPath(_DefaultPathForUrl(url)); in BNetworkCookie() 54 BNetworkCookie::BNetworkCookie(const BString& cookieString, const BUrl& url) in BNetworkCookie() argument 57 fInitStatus = ParseCookieString(cookieString, url); in BNetworkCookie() 104 BNetworkCookie::ParseCookieString(const BString& string, const BUrl& url) in ParseCookieString() argument 109 SetPath(_DefaultPathForUrl(url)); in ParseCookieString() 110 SetDomain(url.Host()); in ParseCookieString() 112 if (url.Protocol() == "file" && url.Host().Length() == 0) { in ParseCookieString() [all …]
|
H A D | UrlContext.cpp | 64 BUrlContext::AddAuthentication(const BUrl& url, in AddAuthentication() argument 67 BString domain = url.Host(); in AddAuthentication() 68 domain += url.Path(); in AddAuthentication() 116 BUrlContext::GetAuthentication(const BUrl& url) in GetAuthentication() argument 118 BString domain = url.Host(); in GetAuthentication() 119 domain += url.Path(); in GetAuthentication()
|
/haiku/src/bin/ |
H A D | checkitout.cpp | 51 CheckItOut::_Warn(const char* url) in _Warn() argument 55 message << "\n" << url << "\n\n"; in _Warn() 122 BUrl url(argv[1]); in ArgvReceived() local 123 fUrlString = url; in ArgvReceived() 125 BString full = BUrl(url).SetProtocol(BString()).UrlString(); in ArgvReceived() 126 BString proto = url.Protocol(); in ArgvReceived() 127 BString host = url.Host(); in ArgvReceived() 128 BString port = BString() << url.Port(); in ArgvReceived() 129 BString user = url.UserInfo(); in ArgvReceived() 130 BString pass = url.Password(); in ArgvReceived() [all …]
|
H A D | urlwrapper.cpp | 53 UrlWrapper::_Warn(const char* url) in _Warn() argument 57 message << "\n" << url << "\n\n"; in _Warn() 99 BString url; in RefsReceived() local 115 line.MoveInto(url, 4, line.Length()); in RefsReceived() 119 if (url.Length()) { in RefsReceived() 120 BUrl u(url.String()); in RefsReceived() 137 BString url; in RefsReceived() local 148 url.SetTo(buffer + sizeof(bplist_match), len); in RefsReceived() 186 line.MoveInto(url, s, e - s); in RefsReceived() 198 if (url.Length()) { in RefsReceived() [all …]
|
/haiku/src/apps/people/ |
H A D | AttributeTextControl.cpp | 123 AttributeTextControl::_MakeUniformUrl(BString &url) const in _MakeUniformUrl() 125 if (url.StartsWith("www")) in _MakeUniformUrl() 126 url.Prepend("http://"); in _MakeUniformUrl() 127 else if (url.StartsWith("ftp.")) in _MakeUniformUrl() 128 url.Prepend("ftp://"); in _MakeUniformUrl() 130 return url; in _MakeUniformUrl() 135 AttributeTextControl::_BuildMimeString(BString &mimeType, const BString &url) in _BuildMimeString() 138 if (url.IFindFirst("http://") == 0 || url.IFindFirst("ftp://") == 0 in _BuildMimeString() 139 || url.IFindFirst("https://") || url.IFindFirst("gopher://") == 0) { in _BuildMimeString() 141 mimeType.Append(url, url.FindFirst(':')); in _BuildMimeString()
|
/haiku/src/apps/webpositive/ |
H A D | BrowserApp.cpp | 178 const char* url = argv[i]; in ArgvReceived() local 182 url = path.Path(); in ArgvReceived() 183 message.AddString("url", url); in ArgvReceived() 270 BString url; in ReadyToRun() local 271 archivedWindow.FindString("tab", 0, &url); in ReadyToRun() 273 fSettings, url, fContext); in ReadyToRun() 279 for (int j = 1; archivedWindow.FindString("tab", j, &url) in ReadyToRun() 282 _CreateNewTab(window, url, false); in ReadyToRun() 310 BString url; in MessageReceived() local 311 if (message->FindString("url", &url) != B_OK) in MessageReceived() [all …]
|
H A D | BrowserWindow.h | 102 const BString& url, 125 void CreateNewTab(const BString& url, bool select, 134 virtual void NavigationRequested(const BString& url, 136 virtual void NewWindowRequested(const BString& url, 142 virtual void LoadNegotiating(const BString& url, 144 virtual void LoadCommitted(const BString& url, 147 virtual void LoadFailed(const BString& url, BWebView* view); 148 virtual void LoadFinished(const BString& url, 168 virtual void UpdateGlobalHistory(const BString& url); 184 const BString& url, const BBitmap* miniIcon, [all …]
|
H A D | BrowserWindow.cpp | 349 const BString& url, BPrivate::Network::BUrlContext* context, in BrowserWindow() argument 665 CreateNewTab(url, true, webView); in BrowserWindow() 843 BString url; in MessageReceived() local 844 if (message->FindString("url", &url) != B_OK) in MessageReceived() 845 url = fURLInputGroup->Text(); in MessageReceived() 848 _SmartURLHandler(url); in MessageReceived() 933 BString url; in MessageReceived() local 934 if (_ReadURLAttr(file, url)) { in MessageReceived() 935 message->AddString("url", url.String()); in MessageReceived() 1012 BUrl url(path); in MessageReceived() local [all …]
|
/haiku/src/add-ons/kernel/file_systems/websearchfs/ |
H A D | duckduckgo_request.cpp | 48 char *url = NULL; in duckduckgo_request_process() local 60 url = (char*)malloc(strlen(BASEURL)+strlen(FMT_NUM)+10+strlen(FMT_Q)+strlen(p)+2); in duckduckgo_request_process() 61 if (!url) in duckduckgo_request_process() 63 strcpy(url, BASEURL); in duckduckgo_request_process() 64 sprintf(url+strlen(url), FMT_NUM, (unsigned int)max_results); in duckduckgo_request_process() 65 sprintf(url+strlen(url), FMT_Q, p); in duckduckgo_request_process() 67 fprintf(stderr, "duckduckgo_request: final URL: %s\n", url); in duckduckgo_request_process() 69 cnx = BUrlProtocolRoster::MakeRequest(url, &output, NULL); in duckduckgo_request_process() 115 free(url); in duckduckgo_request_process() 122 free(url); in duckduckgo_request_process()
|
/haiku/src/kits/network/libnetservices2/ |
H A D | HttpRequest.cpp | 165 BUrl url = kDefaultUrl; member 202 BHttpRequest::BHttpRequest(const BUrl& url) in BHttpRequest() argument 206 SetUrl(url); in BHttpRequest() 222 return (!fData || !fData->url.IsValid()); in IsEmpty() 294 return fData->url; in Url() 395 BHttpRequest::SetUrl(const BUrl& url) in SetUrl() argument 400 if (!url.IsValid()) in SetUrl() 401 throw BInvalidUrl(__PRETTY_FUNCTION__, BUrl(url)); in SetUrl() 402 if (url.Protocol() != "http" && url.Protocol() != "https") { in SetUrl() 407 throw BUnsupportedProtocol(__PRETTY_FUNCTION__, BUrl(url), list); in SetUrl() [all …]
|
H A D | NetServicesMisc.cpp | 21 const char* origin, BUrl url, BStringList supportedProtocols) in BUnsupportedProtocol() argument 24 fUrl(std::move(url)), in BUnsupportedProtocol() 30 BUnsupportedProtocol::BUnsupportedProtocol(BString origin, BUrl url, BStringList supportedProtocols) in BUnsupportedProtocol() argument 33 fUrl(std::move(url)), in BUnsupportedProtocol() 63 BInvalidUrl::BInvalidUrl(const char* origin, BUrl url) in BInvalidUrl() argument 66 fUrl(std::move(url)) in BInvalidUrl() 71 BInvalidUrl::BInvalidUrl(BString origin, BUrl url) in BInvalidUrl() argument 74 fUrl(std::move(url)) in BInvalidUrl()
|
/haiku/3rdparty/mmu_man/onlinedemo/ |
H A D | haiku.php | 632 $url = "http://" . $_SERVER['HTTP_HOST'] . ":$port/"; 639 echo "<source src=\"" . $url . "\" type=\"audio/mpeg\" />"; 643 echo "<param name=\"src\" value=\"" . $url . "\" />"; 649 echo "<embed src=\"$url\" type=\"audio/mpeg\" "; 660 "<a href=\"$url\">$url</a> or <a href=\"$icy\">$icy</a>, or use one of the playlists: " . 678 $url = "http://" . $_SERVER['HTTP_HOST'] . ":$port/"; 683 echo "$url\n"; 700 $url = "http://" . $_SERVER['HTTP_HOST'] . ":$port/"; 704 echo "File1=$url\n"; 765 $url = "telnet://" . $_SERVER['HTTP_HOST'] . ":"; [all …]
|
/haiku/data/bin/ |
H A D | install-wifi-firmwares.sh | 95 local url=$1 101 echo "Downloading $url ..." 102 wget -nv -O $dir/$file $url 106 local error="Failed to download $url." 153 local url="${baseURL}/intel/${file}" 156 DownloadFileIfNotCached $url $file $dir 174 local url="${baseURL}/intel/${file}" 177 DownloadFileIfNotCached $url $file $dir 223 local url="${baseURL}/marvell/${file}" 225 DownloadFileIfNotCached $url $file "$dir" [all …]
|
/haiku/src/add-ons/print/transports/ipp/ |
H A D | IppSetupDlg.cpp | 74 BTextControl *url; member in IppSetupView 88 url = new BTextControl(URL_RECT, "", URL_TEXT, "", NULL); in AttachedToWindow() 89 AddChild(url); in AttachedToWindow() 90 url->SetDivider(StringWidth(URL_TEXT) + 10); in AttachedToWindow() 108 if (*url->Text()) { in UpdateViewData() 114 request->setURI("printer-uri", url->Text()); in UpdateViewData() 117 IppURLConnection conn(BUrl(url->Text())); in UpdateViewData() 128 dir->WriteAttr(IPP_URL, B_STRING_TYPE, 0, url->Text(), in UpdateViewData() 129 strlen(url->Text()) + 1); in UpdateViewData()
|
/haiku/headers/private/netservices/ |
H A D | NetworkCookie.h | 24 const char* value, const BUrl& url); 26 const BUrl& url); 34 const BUrl& url); 61 bool IsValidForUrl(const BUrl& url) const; 92 BString _DefaultPathForUrl(const BUrl& url); 94 bool _CanBeSetFromUrl(const BUrl& url) const;
|
/haiku/data/catalogs/kits/package/ |
H A D | th.catkeys | 2 Fetching repository-cache from %url RefreshRepositoryRequest กำลังดึงที่เก็บแคชจาก %url 7 Fetching repository checksum from %url RefreshRepositoryRequest ดึงการตรวจสอบที่เก็บจาก %url
|
H A D | zh_Hans.catkeys | 2 Fetching repository-cache from %url RefreshRepositoryRequest 从 %url 获取仓库缓存 7 Fetching repository checksum from %url RefreshRepositoryRequest 从 %url 获取仓库校验码失败
|
H A D | el.catkeys | 2 Fetching repository-cache from %url RefreshRepositoryRequest Γίνεται λήψη προσωρινών δεδομένων απο… 7 …tching repository checksum from %url RefreshRepositoryRequest Γίνεται λήψη κρυπτογραφικού αθροίσμ…
|
H A D | ja.catkeys | 2 Fetching repository-cache from %url RefreshRepositoryRequest リポジトリのキャッシュを %url から取得中 7 Fetching repository checksum from %url RefreshRepositoryRequest リポジトリのチェックサムを %url から取得中
|
H A D | ko.catkeys | 2 Fetching repository-cache from %url RefreshRepositoryRequest %url에서 저장소 캐시 가져오는 중 7 Fetching repository checksum from %url RefreshRepositoryRequest %url에서 저장소 체크섬 가져오는 중
|
H A D | ru.catkeys | 2 Fetching repository-cache from %url RefreshRepositoryRequest Загрузка кеша репозитория из %url 7 Fetching repository checksum from %url RefreshRepositoryRequest Загрузка контрольной суммы репозит…
|