Snippets tagged “get”
11 snippets use this tag.
- Curl and PHP - how can I pass a json through curl by PUT,POST,GETPHP
To pass a JSON object through cURL using the PUT method, you can use the following command:
- Detecting request type in PHP (GET, POST, PUT or DELETE)PHP
In PHP, you can use the $_SERVER['REQUEST_METHOD'] superglobal to detect the request type.
- Get PHP class property by stringPHP
In PHP, you can use the $ operator to access an object's properties by name.
- How to check if $_GET is empty?PHP
You can check if the $_GET array is empty by using the empty() function.
- How to create JSON Object using String?Java
To create a JSON object from a string in Java, you can use the org.json library. Here's an example of how to do this:
- How to iterate over a JSONObject?Java
To iterate over the key/value pairs in a JSONObject, you can use the keys method to get an iterator over the keys in the object, and then use the get method to get the value for each key.
- How to Make HTTP GET Request in JavaScriptJavaScript
Read the tutorial and learn the how to make an HTTP GET request in JavaScript and make an asynchronous request and handle the response inside event handler.
- How to pass an array via $_GET in php?PHP
In PHP, arrays can be passed in the URL using the $_GET superglobal variable, but they need to be encoded first using the http_build_query() function.
- Passing multiple variables to another page in urlPHP
There are several ways to pass variables from one PHP page to another.
- PHP __get and __set magic methodsPHP
The __get and __set magic methods in PHP are used to intercept calls to get or set the value of inaccessible properties of an object.
- Spring RestTemplate GET with parametersJava
To perform a GET request with parameters using the RestTemplate in Spring, you can use the getForObject() method and pass it a URL with placeholders for the parameters, as well as a map of the parameter values.