Questions tagged [get]
GET is one of many request methods supported by the HTTP protocol. The GET request method is used when the client needs to get data from the server as part of the request-URI.
5,439
questions with no upvoted or accepted answers
14
votes
0
answers
9k
views
Why do request parameters sent in request body need to be URL encoded?
I understand with GET request they need to be entered into a URL and therefore need to be URL (percent) encoded so that they don't mean anything in the context of a server interpreting the URL.
But ...
9
votes
2
answers
8k
views
Android OkHttp library: GET Request - Exception EOFException: \n not found: size=0 content=
I'm using in my app OkHttp library (http://square.github.io/okhttp/) and in one simple GET request I get this exception:
Caused by: java.io.EOFException: \n not found: size=0 content=...
at okio....
7
votes
1
answer
2k
views
PHP SoapClient and reading attributes
I have found numerous explanations about how SoapClient expects you to set attributes in a request, but I simply cannot find a way to read attributes from a response.
For example, my SoapClient ...
7
votes
1
answer
30k
views
Run a cURL command in a browser
How do I run a cURL command like this
curl -X GET http://www.in.com/
I am using windows 8.
How do I run this inside a browser say using NETWORK tab/or any other tab
I know that there is an option in ...
6
votes
2
answers
5k
views
Python requests.get fails with 403 forbidden, even after using headers and Session object
I'm making a GET request to fetch JSON, which works absolutely fine from any browser on any device, but not by python requests:
url = 'https://angel.co/autocomplete/new_tags'
...
5
votes
0
answers
2k
views
Getting posts from 9gag Api
I would like to download posts through the 9gag.com Api, which apparently exists but isn't documented anywhere. If you check this link in your browser, you will get a json response: https://9gag.com/...
5
votes
0
answers
2k
views
GET request to opensea API giving 403 error
I'm trying to retrieve the asset info from a specific collection using the asset endpoint.
Example:
https://api.opensea.io/api/v1/asset/0x1a92f7381b9f03921564a437210bb9396471050c/2000/?format=json
Now,...
5
votes
0
answers
1k
views
Changing the max query string length in express
Does anyone know what the max query string length in express is and how to set it to be a larger amount?
It seems that for running local requests, I get a StatusCodeError: 414 when doing a GET ...
5
votes
0
answers
4k
views
Why am I getting intermittent CORS errors from AJAX requests?
I am making a call to 2 APIs (which are hosted on the same server) using 2 AJAX requests, but every few refreshes, I get hit with a
Failed to load https://someapiurl: No 'Access-Control-Allow-...
5
votes
1
answer
12k
views
curl output not redirecting to file
I am trying to redirect output of curl to a file.
As per man pages of curl, I have to append:
--output <file.txt>
However, even if I do so, the output isn't getting redirected.
Could someone ...
5
votes
0
answers
5k
views
Axios 'get' request returns string instead of object
I'm having an issue with using axios.
The axios get request returns String instead of Object.
If I use Ajax request, It returns object.
I did console.log the response.data using axios
Using the Ajax ...
5
votes
0
answers
5k
views
Angular httpClient get single object typeError _co.object undefined
I use Angular5 with httpClient to request a rest api.
My issue is I perfectly get lists of objects but I can't obtain a single object.
I use modules for this module I have a service in which I have my ...
5
votes
1
answer
474
views
How to use POST method in Drupal 8 Views Rest Export?
Drupal 8 supports REST API exports in GET method. But How can define POST method in views rest export api? #Drupal8 #views
5
votes
1
answer
374
views
html dynamically generating form but not giving the value of date in url when posting it
function addrow() {
document.getElementById("myTableData").style.display="block";
/*displaying div on click of button abc*/
var el = document.createElement('input');
el.type ...
5
votes
1
answer
3k
views
ASP.NET WebService mistakenly returning XML instead of JSON only when using Http Get but web.config is set up right
Symptom:
When I make a web service request (from JQuery using .ajax, to ASP.NET .asmx file), if it is made using GET instead of POST, the .asmx file always returns XML instead of JSON. If I flip the ...