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
-
18
votes2
answers4597
viewsWhat are the differences between HTTP 1.1 vs HTTP 1.0?
What are the differences between them, and for which case each is most recommended? We have the documentation of HTTP 1.1 and that of HTTP 1.0, but they are long, and I would like a brief…
-
17
votes2
answers13586
viewsUse of $_REQUEST instead of $_GET, $_POST and $_COOKIE
In PHP we have available the global variable $_REQUEST which can be used instead of using the global variables individually $_GET, $_POST and $_COOKIE. For example: <?php // utilizar $bubu =…
-
9
votes2
answers15933
views -
8
votes3
answers7789
viewsBuilt-in form action parameter is not passed via GET
I have the following HTML code, and in the action Seto the address obeying my query string: <form name="searchCard" class="serachCard" method="get" action="painel.php?spv=nav/buscarCard">…
-
7
votes2
answers1181
viewsWhy don’t browsers implement HTTP’s PUT and DELETE protocols?
For some reason the Internet browsers (Chrome, Firefox, IE, ...) decided to only implement the GET and POST methods of the HTTP protocol. Other methods such as PUT and DELETE were left out. Why? My…
-
7
votes4
answers1799
viewsMaximum amount of elements sent by a form?
I would like to know if there is a maximum amount of elements that I can send from one form to another POST as I saw GET. I know if I pass my data via GET, there is a maximum length of URL, varying…
-
7
votes2
answers813
viewsHow to prevent the page from opening outside an iframe?
Cannot open link in iframe if (self != top) { top.location.replace(window.location.href) } I need something in javascript that is contrary to this. I want my URL to work only within an iframe…
-
6
votes2
answers1338
viewsHow to increase the size of the GET request to put parameters greater than 10KB in NGINX and PHP?
I need to make a very large GET request with NGINX and PHP. Is there any configuration in NGINX or PHP that solves this?
-
6
votes1
answer1006
viewsPOST and GET on SSL
On a site, protected with SSL, are POST and GET also encrypted? The fact that GET is part of the address, even so it is encrypted?
-
6
votes2
answers1364
viewsProblem with very large URL
I am trying to pass a URL by GET and the server is returning error 404 by the URL being too large (I am passing an XML through the URL). I have already tried to add the Maxfieldlength variables with…
-
6
votes2
answers189
viewslimit the for, php
Good is the following, I am generating pagination links to get more lightness in my system, the problem is I have many records in the database and this pagination generates many links, thus…
-
6
votes1
answer183
viewsCollect shared URL statistics on Facebook using Python
To collect statistics from a shared Facebook URL in PHP, I am using Curl to query the following URI: // URL para submeter $pageUrl = 'http://www.example.com/my-new-article-is-neat'; // URI a…
-
5
votes1
answer3509
viewsHow to implement a login system in a MVC standard?
I’m studying about mvc with php, I managed to make a simple start system, only I was left with doubts in some points, how can I implement my login system? where I should "take" the values of POST…
-
5
votes1
answer1033
viewsHow to consume a JSON url without using jQuery
How could I consume a URL with data coming from a JSON without using libraries like jQuery or something like that for a structure like: [{chave:valor1},{chave:valor2}]
-
5
votes1
answer188
viewsSend date by $_GET
I need to send a date by $_GET but I am not succeeding, what is the method to make this passage ? The shipment is like this:…
-
5
votes1
answer1177
viewsSend and pick up GET by AMIGAVEL URL
I have this tag on the index <a href="projeto">Projeto</a> Who sends me to this page localhost/project.php That I’m leaving like this localhost/project With the RewriteEngine on…
-
4
votes2
answers786
viewsDynamically assemble URL parameters
I have a page in a system where I list the products registered in BD, I am implementing some filters within this page, and I would like to update the links of the filters as requested in the URL…
-
4
votes2
answers1335
views$_GET gets ID or name value?
The $_GET, or even the $_POST, take values from the ID of the input or of name? <form action="#" method="get" name="meuForm"> <input id="nome" name="nome" type="text" value="Teste">…
-
3
votes2
answers2791
viewsHow to treat a "redirect" after an Ajax call with Jquery?
Use Jquery to make an Ajax (GET) call. When "redirect" occurs, code 302, for a valid answer Jquery returns error instead of redirecting to the new URL. There’s some other way to treat it?
-
3
votes3
answers480
viewsCheck whether $_GET value is 1 or 2 and run SQL UPDATE
I have the $_GET['id'] and I need to check if the value it takes from the url index.php?id= is 1 or 2, and if none of the alternatives runs a die();, if it is 1 or 2 assigning $var = $_GET['id'];…
-
3
votes2
answers3812
viewsSend form data via GET to server (without updating page)
I have this form and would like to give a GET for variables with their value when clicking the button, without refreshing the page because I have other forms on the same page, it is possible with…
-
3
votes1
answer736
viewsPHP using $_GET
I am analyzing an example code (Tpage.class.php, from the ojetos-oriented PHP book, Link Classe), which works according to the parameters passed in the URL, if ($_GET)//Verifica se foi passado algo…
-
3
votes1
answer109
viewsHow to put a string at the end of all Urls via PHP (Codeigniter)
I’m using the Codeigniter framework to develop a system. But in the company where they are using, the pages are not updating right, it is as if the cache is full page and only when I give an F5 it…
-
3
votes2
answers513
viewsJavascript does not pick up pages added later
I’m in trouble, which begs a big question. I’m developing a website that has a standard structure, which makes GET calls on Jquery to search for new HTML pages for certain parts of the page.…
-
3
votes2
answers5474
viewsCalculate day difference between two dates [PHP]
Good afternoon to you all! I did some research before asking the question, but I did not get an answer to my question in any of them. I need help in getting the following code to receive both dates…
-
2
votes1
answer566
viewsGet values through get method parameters
I have a action that sends by parameters the codCliente: //master/CadastrarEndereco?codigoCliente=1011 How do I get that value codigoClientein my controller so I can persist the value in the BD?…
-
2
votes2
answers2343
viewsRequest Method Switching from GET to OPTIONS alone
I have the following code: $(function() { $('#method').change(function() { var method = $(this).val(); if (method == 'GET' || method == 'DELETE') $('#json-group').hide(); else…
-
2
votes1
answer1864
viewsMessage "301 Moved Permanently" began to appear suddenly
I have two applications that worked perfectly, however, without changes in the code, no longer work. On one side, an application with a JSP making a call POST and passing two parameters Hidden:…
-
2
votes1
answer3256
viewsHow do I use $_GET to pick up content from a link that was sent to a user’s email?
I sent this link to a user’s email: http://www.example.com/redefinir_senha.php?token=4kl_EIwmivsCg52TsBgWWgWMPsApjFTJL8oBUXPDoHE&uid=USER-ID On the page reset.php password I know how to do the…
-
2
votes0
answers109
viewsPost for consultation of NF-e data
I am trying to get the data of an electronic invoice through a post on the farm site. I am using the Jsoup library. First I did a get to get the captcha image and it worked perfectly. I created my…
-
2
votes3
answers365
viewsHow to use multiple $_GET in PHP through a URL
Through a URL, I want to display a set of information in the HTML of the page, however, there are values I want to repeat in certain URL’s and others not. Example:…
-
2
votes1
answer1331
viewsSending data via Link (POST or GET)
Good morning my dear, I’m new around here... First of all, I want to point out that I have read the topics that exist in this forum and I could not solve my problem! My problem is to send only the…
-
2
votes1
answer1316
viewsGrab $_GET url parameter from an iframe - WORDPRESS
I’m having a hard time, inside my website I put a iframe that has a button that directs to another page inside my site via GET. only that this button is already gone. ex.: The link inside the iframe…
-
2
votes2
answers166
viewsError trying to recover $_GET value in Submit
My system does a target search before opening the registration form, in this search I take the Destinoid parameter and enter the input. The problem is that when I click on save it fails to do…
-
2
votes1
answer407
viewsHow to pass a GET request to a file that does not belong to wordpress
wordpress does not recognize files that do not belong to it, even though it is there in the theme folder, which is my case. How can a make an external file receive this information? For example: I’m…
-
2
votes1
answer592
viewsProblem with form (GET method) and URL Friendly
I have a problem sending a form, because I am using a scheme that changes the pages according to the GET['page'], and I used the user-friendly url to take out all that code to leave only the page…
-
2
votes2
answers125
viewsHow to get a return of an Array<String> in a GET call with task.resume()?
Good afternoon, you guys. I’m having a hard time uploading the content of a Pickerview in my app, as it needs to fetch the information in a call GET, the call works and I can assemble the array with…
-
2
votes2
answers1588
viewsHow to pass input value with POST method using Angular
I’m trying to pass certain values of a input through the POST method using Angular, but I’m not able to pass these values in the URL and not even pick them up on the server. Could someone help me…
-
2
votes2
answers2426
viewsGet URL ID instead of INDEX
Hi, I’d like to know how to get the URL ID as if the index were the ID, like this Using GET: http://domain.com/api.php?id=1999&output=json $id = $_GET['id']; Okay, so far so good, but I’d like…
-
2
votes2
answers4609
viewsHow to pass a GET parameter in a URL in Angular 4+ ? Using the route system
I need to insert a parameter GET after entering the page with the URL. For example: I clicked here and went to page y. http://example/paginay**?= parametroGet** The get parameter will be an ID,…
-
2
votes1
answer67
viewsHow to pass the "+" signal using GET?
I need to send a parameter GET which is encrypted in AES but in the hash sometimes comes a + and in sending the browser interprets this + separating the hash. Example of the URL:…
-
2
votes4
answers232
viewsHow to change the date order of an implode from a jquery datepicker
I have the following $_get : if(!empty($_GET) && $_SERVER['REQUEST_METHOD'] == 'GET'){ $v_ocorrencia = $_GET['ocorrencia']; $datainicio = $_GET['datainicio']; $datafinal =…
-
2
votes1
answer51
viewsprogram does not catch system date
I have a program that I am doing a test to see how it goes but I could not find the error that makes it does not return the date and time of the system, I thought it was the regex but it is also not…
-
2
votes1
answer96
viewsResult of the GET method brings all database relations and subrelations
I have an application where I have a listing screen I’m doing a GET method on my Spring Boot API Controller class @RequestMapping(method = RequestMethod.GET, value = "/distritos", produces =…
-
2
votes2
answers1162
viewsIonic - wait for http get return
Edit: solution in the third answer. I’m trying to do a login function for a project on Ionic 2. This function checks if the user is registered in the database through the php server and returns the…
-
2
votes1
answer23
viewsPUT problems with Spring data JPA
I’m using Controller architecture, DTO, Repositoy, Service Use Postman to test the requests, I can do POST on User normally and when I do GET Postman returns me { "id": 3, "nome": "Arthur", "cpf":…
-
2
votes1
answer1598
viewsError doing GET search with queries
Hello, I created in my application a GET wheel /search, but when I try to send a request with queries by the Inuit application, the node terminal returns two errors, the first is: Typeerror: Cannot…
-
1
votes1
answer392
viewsAdd Input with Jquery and how to get the data from this input
I have 1 JS button that creates input. I just can’t get this input data. I can create every input with a different name, but I have no idea how can I get these values from php. I tried to send the…
-
1
votes2
answers298
viewsError with $_GET function
Personal my question is the following, I have the page criareditarevento.php that updates information from a registration system, but I need to make the update message open inside the page main.php…
-
1
votes0
answers74
viewsRead all posts and comments from a facebook user?
Dear friends, I’m in need of a help. I need to make a Crawler who read all posts with friends and their comments using php. I can do a test with my posts via dosdk-php. I read from the first page…