Most voted "get" questions
GET is one of many request methods supported by the HTTP protocol. The GET request method is used when the client needs to retrieve data from the server as part of the request-URI. DO NOT USE for other get types.
Learn more…196 questions
Sort by count of
-
1
votes4
answers1023
viewsSend more than one parameter in GET request
I use the code below to send a meter in a request Ajax of the kind GET. $('#cidades').load('cidades.php?estado=' + $('#estados').val()); How do I also pass a parameter called recurso?…
-
1
votes1
answer86
viewsValue between Asp.Net forms C#
Boa Tarde Personal I’m taking the value of a gridview so far so good: gridCadastro.GetRowValues(gridCadastro.GetFocusedRowIndex(), 'id_cliente', OnGetRowValues); Now I need to take this value and…
-
1
votes1
answer127
viewsConvert Windows application to Windows Phone - C# (Httpwebresponse and Httpwebrequest)
I have a C# class for Windows that works normally, but I’d like it to work on Windows Phone. The idea is to use HTTP methods get and post from a web page that has CAPTCHA. I will show the captcha to…
-
1
votes3
answers1869
viewsHow to make '$_SERVER['REQUEST_URI']' accept GET variables
Hello, I have the following condition: if($_SERVER['REQUEST_URI'] != '/painel/cardapio.php'){ header('Location: cardapio.php'); } but I’m having trouble because the cardapio.php can be accessed…
-
1
votes1
answer47
viewsWhy are [ ] characters processed this way in my URL?
When sending a $_GET of my application have the following expression tipo%5B%5D=CASA in my url. The data comes from an HTML element of the type checkbox of name="tipo[]". These characters simply…
-
1
votes1
answer102
viewsWhat is the importance of filtering super-global?
I wanted to know more details of what could happen when I stop filtering super global, mainly for data insertion. What loopholes could be opened? I started with php a little while ago and was making…
-
1
votes1
answer1377
viewsPHP variable storage - $_SESSION x $_GET
Hello friends. I have a question about best practices applied in development: What would be the best form of temporary storage of variables in an application? I have a PHP application where I can…
-
1
votes1
answer84
views -
1
votes1
answer8366
views -
1
votes1
answer1341
viewsCheck if a parameter passed by the url exists within the View
I have this following code in my Controller: public function SetImageAndColor($client_id) { if(isset($_GET['color']) AND isset($_GET['image'])) { $dados['click2call'] [$client_id] ['image'] =…
-
1
votes1
answer1756
viewsPOST and GET methods in C#
I would like to know if you have any library or any third party component that do the POST and GET on the websites. I need to navigate some sites but I can not do GET nor on the home page of a…
-
1
votes1
answer86
viewsPass PHP parameters to Jquery Mobile Panel
Good morning to all, I’m trying to do a function where a JQM Panel dynamically receives a PHP page with some parameters. However it does not work, the panel opens blank. Below is the code I am…
-
1
votes2
answers61
viewsjQuery.get runs after all the rest of the function
Running this code the sequence of Alerts I have is begin, outside, final e inside, how to solve this ?? addLine(){ alert('begin') jQuery.get('database/addClube/'+this.clube);…
-
1
votes1
answer61
views -
1
votes2
answers661
views(Laravel) method $.get can’t find route
Eae guys, all right? I would really like your help because I’ve been stuck in this problem for a couple of days and I couldn’t figure it out on my own. I have a multi-row table with a checkbox on…
-
1
votes0
answers31
viewsError when querying R API created with Plumber
Friends, I created an api in Plumber , when I query this api directly in the browser I can see the data , but when I use the GET() function I have the following error : Error in prettyNum(.…
-
1
votes1
answer275
viewsDoubt question and answer systems with $_GET method
I have a system that shows a question and the person replies, When the staff responds step I use the $_GET method to pick up his answer and insert the information in the bank,plus the failure and…
-
1
votes1
answer412
viewsPHP and javascript - Getting javascript value in PHP (use of Session)
On the site I took over from another developer, done in PHP and Javascript, there is a search for events created (all registered in Mysql database table). In each event searched, I created a button…
-
1
votes1
answer152
viewsVariables in friendly Urls
How are you? I am doing the user profile and there are 3 tabs, IE, three areas that users can navigate. For profile, I rewrote as follows on . htaccess: RewriteRule ^profile/([0-9]+)/([a-z0-9-]+)/?$…
-
1
votes3
answers3696
viewsWebservice de CNPJ
I need to get some CNPJ data for my registration system, I found this webservice on interwebs. GET - http://receitaws.com.br/v1/cnpj/[cnpj] But I’m not able to implement in PHP code. You could help…
-
1
votes1
answer35
viewsHow to pass HTML form element parameters directly to the URL
I need to pass information directly to the browser but the result of the code is always returned as https://xxx.com/? cli=value need to return in the URL only the value contained in the input…
-
1
votes2
answers196
viewsParameter arriving truncated way in Ajax request
I have a requisition Ajax that gets the data I need from a WebMethod. The problem is that the parameter used for the request is "coming" truncated in the WebMethod the length of the parameter is 44…
-
1
votes0
answers597
viewsGET parameter with special characters
I have already scoured the entire internet for the solution of my problem and as a last resort, I come here to ask you and hope to find a solution to my problem, following: I am performing a query…
-
1
votes1
answer148
viewsError picking GET attribute in jsp!
I am facing the following problem, I am making the following redirection: response.sendRedirect("../../index.jsp?NA=1"); Where the url goes like this:…
-
1
votes0
answers54
viewsProblem with Enctype in the form
Hello, I have a project being developed in php, it was all done so I hosted the site, when I came across an error that did not happen locally. I have a form file, this page receives a parameter via…
-
1
votes0
answers318
viewsSlim return on the same page of a POST submission
I’m sending a request post to a URL, but I need to return to the same page a message or alert saying if the ID is already registered or not. I already have the query and method to do this, but I am…
-
1
votes0
answers19
viewsPTBR FATAL EXCPETION:main java.lang.Runtimeexception - window get call back
I am making an application that needs to swap between screens and appears the following error: early java.: package com.example.deadsec.gerflores; import android.content.Intent; import…
-
1
votes3
answers2634
viewsPOST method does not work!
Guys, I’m making a simple code... I just want to get the information typed in the form. But it doesn’t work, the GET works... the Post doesn’t. <!DOCTYPE html> <html lang="en">…
-
1
votes2
answers578
viewsReceive POST ID and play to Location via GET
I need to get the ID of the entity that has just been registered. Only it will be played to another screen, to be registered other information. I would like to know how I can get the entity ID when…
-
1
votes2
answers53
viewsEnable button when last request is executed successfully
Personal I am wanting to enable a button only when the last post request via Ajax is executed successfully. I have a table with several records with their respective information and ids. By clicking…
-
1
votes0
answers155
viewsHow to receive value per GET?
ola personal I am developing a job and I need to get a value by get in the url but I’m not getting if someone can help me and show my mistake I thank you: <?php…
-
1
votes0
answers56
viewsWhy doesn’t my switch generate the right results?
I’m using a condition and a switch to determine some values for some variables, but I’m not getting the expected results. When the link <a href="index.php?post=myFile"></a> is clicked, I…
-
1
votes1
answer39
viewsPaging system not working - SERVER SIDE
This is my file called index.php: <?php $maxlinks = 4; $paginaAtual = (isset($_GET['paginaAtual'])) ? (int)$_GET['paginaAtual'] : 1; $maximo = 5; $inicio = (($maximo * $paginaAtual) - $maximo);…
-
1
votes2
answers50
viewsProblem with sending via URL ( GET)
Good morning friends, I have these buttons here: <button class="btn-excluir" data-id="1">Primeiro</button> <button class="btn-excluir" data-id="2">Segundo</button> <button…
-
1
votes1
answer180
viewsMake a bank GET from an Laravel Array
I have a select where I do a search from an informed id, No Postman do a POST by sending an array to as in the example below [ { "id":"1" }, { "id":"2" } ] In the repository I search for these id to…
-
1
votes0
answers63
viewsC++ How to take the string of the get method of a class x and concatenate with a class y string?
I am programming a code in Qt(C++) and I need to take values from the client class in the menu class (which I do not inherit from client) and concatenate into a string to print on the screen.…
-
1
votes0
answers327
viewsError "Cannot send a content-body with this Verb-type"
Guys, I’m having trouble with the mistake "Cannot send a content-body with this Verb-type.". I’ve changed the method to POST, but the API only accepts if the given method is GET. I’ve tried to send…
-
1
votes1
answer820
viewsI am unable to send a parameter to a GET method of an API using the PHP Curl
Hello, I am trying to use Curl to consume an API where there is a method that receives a string as parameter. This method in the API is configured as GET, so it will receive this parameter validate…
-
1
votes2
answers96
views[[Promissevalue]] React
I’m doing a get an api on Nodejs, only the result is coming back within a [[Promisevalue]], how do I access it directly? With async and await it works, but when for it to authenticate on the route…
-
1
votes1
answer191
viewsAxios returning HTML data, not JSON
I am developing small project to learn Act and I came across the following problem. When making a request in an Axios API by passing input as parameter to the route, Axios is returning an HTML, not…
-
1
votes1
answer50
viewsVolley Android - GET to return list of videos from a playlist - JAVA
Hello, I’m using the android library Volley to make a GET call (https) to return to me the Json of the videos of a specific playlist. Basically my current GET request is this: String url…
-
1
votes1
answer30
viewsInitial Form Django is not working properly
Well I am developing an application in Django and I am trying to use jquery with Django to make a request to Viacep to consult the cep that the person typed and left the focus of the field that was…
-
0
votes1
answer400
viewsAngularjs - Http get is returning the main page html instead of json
Friends, I have a web app that works normally when installed on localhost. But when I deploy on a different server http get returns the main page html instead of returning the json. Detail this…
-
0
votes1
answer17853
viewsHow to pass a value to next page with PHP
In the code below I try to pass the value to the next page NumeroCartao. But the variable is empty on the next page. How to fix this error? INDEX.PHP <label> Numero da Carteira: </label>…
-
0
votes1
answer624
viewsGet values from $request
I would like to take all the values of a certain key of a request. Ex Request:…
-
0
votes0
answers239
viewsLimit Length URL GET
What character limit for a URL? I see this because I followed a GET request from facebook where the URL had around 7k of characters, so I searched, the maximum is 2048, and this depends on the…
-
0
votes2
answers917
viewsHow to insert an image by parameter in the url and display it on the screen
I need the code to check if this parameter with the image exists, if it exists, I have to display it on the screen. How can I do? Note: The parameter with the image should be passed by the user in…
-
0
votes1
answer77
viewsCan someone help me with the GET function?
Making a shopping site, then have the products table and order table, where after the person buys something writes in the orders table, but wanted to record the product id in the orders table, how…
-
0
votes1
answer390
viewsProblem with Getters and Setters of an Array
I’m having trouble accessing arrays in a Singleton class Class Info public class Info { private static Info cinfo; private String[] first_name; private String[] last_name; private String[] nickname;…
-
0
votes1
answer2573
viewsWhy is the GET method considered safe and the POST method unsafe? And in what situations should I use them?
I read that the method GET is considered "safe" and the method POST is considered "unsafe". Shouldn’t it be the other way around? The method POST does not expose the data sent in the URL, so it…