Snippets tagged “url”
11 snippets use this tag.
- How can I download and save a file from the Internet using Java?Java
To download and save a file from the Internet using Java, you can use the URL and URLConnection classes from the java.net package.
- How do I do a HTTP GET in Java?Java
To send an HTTP GET request in Java, you can use the java.net.URL and java.net.HttpURLConnection classes.
- How to add http:// if it doesn't exist in the URLPHP
You can use the following code snippet to add "http://" to the beginning of a URL if it doesn't already exist:
- How to Get Current URL in JavaScriptJavaScript
Read and learn how to get the current URL in JavaScript by using Location object properties. Also, gain an understanding about URL and its components.
- How to Get Query Parameters from a URL in Vue.jsVue.js
Read this short Vue.js tutorial and learn a super easy method that is used to get the query parameters from the URL. Also, read about query parameters.
- How to Get Query String Values in JavaScriptJavaScript
On this page, you can find fast and simple solutions on how to get query string values in JavaScript. Just follow the examples given below to make it work.
- How to Get URL ParametersJavaScript
Read this JavaScript tutorial and learn how you can easily get the URL parameters with the help of the methods provided by the URLSearchParams interface.
- How to Use the filter_var() Function in PHPPHP
Let’s dive deeper into the world of PHP. Here, we are going to discover the filter_var() function. Let’s see for what purposes it can be used in PHP.
- PHP Regex to get youtube video ID?PHP
You can use the following regular expression to extract the YouTube video ID from a URL:
- PHP_SELF vs PATH_INFO vs SCRIPT_NAME vs REQUEST_URIPHP
PHP_SELF, PATH_INFO, SCRIPT_NAME, and REQUEST_URI are all superglobal variables in PHP that provide information about the current URL being requested.
- Simplest way to read JSON from a URL in JavaJava
To read JSON from a URL in Java, you can use the readJsonFromUrl() method from the JSON simple library.