Questions tagged as 'get'

0
answers

How to detect the end of reading a file in a loop with while in C ++

In my code, you have the struct: struct material { int idmaterial; double rho; double precokg; }; And the reading function of a data vector of type "material", from a file: std::vector<material> le_material(std::string s...
asked by 14.05.2018 / 19:36
2
answers

Get JavaScript content

I need to make some changes to a web page. I'm creating an HTML form with JavaScript and need help in the following case: My form has a field where the user types the ID of a SPOJ-WWW contest, after typing the ID the page should make a get...
asked by 19.04.2018 / 15:13
1
answer

How to filter result from another page with Jquery Load () or Get ()?

In an HTML I have for example: <fieldset> <div> <h3 class="title title-line">Dados da conta</h3> </div> <div class="ch-form-row"> <label>Usuário</label> <s...
asked by 29.03.2018 / 16:58
1
answer

What should I return in a REST API when the results are either true or false?

When I search an information in the database and this information is not returned (since it does not exist), what should I do? Filling a JSON object for GET return? And if I return false? Can the response be the status code 201 or 404? What w...
asked by 21.03.2018 / 20:14
1
answer

How to load php page using javascript (with GET method)?

Good afternoon! I have the following problem: I have a php page (productos.php), where the body of the page can vary according to 2 files (products-filters.php and products-wfiltros.php) that are loaded via javascript using load The two files...
asked by 05.03.2018 / 18:45
0
answers

Error MongoDB - geoNear "no geo indices"

To get a MongoDB database I use the following code: router.get('/multibancos', function(req, res, next){ MB.aggregate().near({ near: { type: "Point", coordinates: [parseFloat(req.query.lng) , parseFloat(req.query.lat)] },...
asked by 08.02.2018 / 23:19
1
answer

Get Json URL response

Personally I'm trying to get response from JSON from the URL below: link . I have tried in Php and Jquery, and I can not get the answer. If you paste the link into the Browser, it provides the answer, but from the codes in my localhost, I ca...
asked by 07.02.2018 / 17:57
1
answer

Order of angular token

How to place my Authorization token in my http request (GET). This is my current code: import { Component } from '@angular/core'; import { Http } from '@angular/http'; import { HttpClientModule, HttpHeaders } from '@angular/common/http'; @...
asked by 23.01.2018 / 23:39
1
answer

Swift 4 http get and iterate the JSON response

Hello, I'm learning Swift and I'm doing a GET request via URL that returns me a JSON with this structure. { "data": { "response": [ "https://s3.amazonaws.com/meusite/minhapasta/banners/banner-01.png", "https://s3.amazonaws.com/meusite/minh...
asked by 10.12.2017 / 17:21
1
answer

GET does not catch the rest of the url after &

I am making an API to shorten links, the links I use could not get the rest of the url after the & sign. <?PHP $long_url = rawurldecode($_GET['link']); echo $long_url; api.php? link = link     
asked by 19.11.2017 / 22:30