Most voted "http" questions
Hypertext Transfer Protocol (HTTP) is a network protocol, application layer of the OSI model, which is used for content transfer on the World Wide Web.
Learn more…465 questions
Sort by count of
-
0
votes0
answers205
viewsI use HTTPS and only want an HTTP URL with Nginx
I have a site configured on an Nginx server to force HTTPS to the entire site, but I need only one URL to be in HTTP only keeping the rest of the site in HTTPS. The URL is exactly this:…
-
0
votes2
answers134
viewsError starting HTTP server in Ruby
Hello guys I’m new with Ruby and I’m trying to create my first project but when I will start the server with the command rails server i get this mistake: João@joao-note MINGW64…
-
0
votes1
answer43
viewsSCRIPT to Convert and Save Addresses
I developed a script to convert a coordinate in a REST API with Cakephp $lat and $lng in formatted addresses. The script checks if the coordinate is saved in the bank, if negative it searches google…
-
0
votes1
answer57
viewsRails project deploy on AWS, port-free access
I need to upload a site developed in Rails in the AWS. However, whenever I give the start it is only accessible if I specify the port used by Rails (www.dominio.com:3000, for example). I tried to…
-
0
votes1
answer75
viewsWhat would the @DELETE methods of a Restfull java api look like?
I’m using the FullEntityRepository of deltaspike, the Response has to be a status 204 if successful, and status 400 if not. Any tips? Service layer: @Transactional public void deletar(Integer id){…
-
0
votes1
answer75
viewsReverse redirect 301
In the index.php file, I accidentally wrote the following code: <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.habbo.com.br"); ?> The redirect was only supposed…
-
0
votes1
answer720
viewsPass array as parameter for web api in php with Angularjs
In my local environment I use PHP7 and developed Restful API for an application that uses Angujarjs. I needed to make a get request to the Api and pass an array as parameter and did so…
-
0
votes1
answer1419
viewsGoogle Chrome Redirecting to HTTPS on localhost or virtual host
Good morning to all. Recently, I do not know if it was a google update, their browser started to make a strange redirect. I have apache server and when I enter a url configured in localhost, even if…
-
0
votes2
answers736
viewsHow to make an HTTP request in Ruby?
How do I request HTTP in Ruby? I need to implement an API, and for that it is necessary to make a REST request for such a URL, as I do a POST for such a request?
-
0
votes0
answers36
viewsHow to add a Form to an array of files?
I made a small script to upload images so you can choose as many as you want. At the end is an array with all the information. How can I make this array with the files go to the request so that the…
-
0
votes2
answers257
viewsReturn 0 from HTTP
I’m having a bit of a strange problem.. I need to return the status of some web addresses to the application, so I used the code below: The algorithm, takes as a parameter a URL, then returns me the…
-
0
votes1
answer141
viewsNomethoderror: Undefined method `Empty? ' for #<URI::HTTPS:0x000000063069d8>
I am making a REST request but while executing I have this error: NoMethodError: undefined method `empty?' for #<URI::HTTPS:0x000000063069d8> My code: require 'net/http' require 'uri' def…
-
0
votes1
answer245
viewsChange user agent
I need to change the user agent on mobile. I tried with pure php but it didn’t work, I’m using Mobile Detect, I can even detect when it’s mobile, but I can’t change the user agent. The example I…
-
0
votes1
answer623
viewsSend parameters via post json android
I need to send the username string via post after button1 is clicked, my code has no error in the monitor, simply does not send anything to the bank... This is my code : public class PostTeste…
-
0
votes2
answers173
viewsHow to validate data securely in the frontend?
According to that comment by @Pauloalexandre, it would be possible to validate the data only on the front, so that the back only receives the ready data I know that it is possible to limit, through…
-
0
votes2
answers216
viewsHow to know one HTTP_HOST and redirect to another
That is, when HTTP_HOST is equal to site1.com or site02.com it redirects to novosite.com I tried something like this below. but it didn’t work. <?php if ($_SERVER['HTTP_HOST'] == 'site1.com,…
-
0
votes1
answer70
viewsHow to change the host address where requests "src" and "href" go?
Example: I give one file_get_contents('http://youtube.com') and then, should we src and href html does not have the whole path, but only src="/pasta/arquivo.ext", instead of…
-
0
votes1
answer78
viewsWhen error 404 in header, and redirect to a specific page?
I have this page with link OFF: https://uploadbr.com/1j1w But it’s no use me doing it with .htaccess, because I’ve tried and it won’t, I want to do with php. I tried something like this:…
-
0
votes2
answers1198
viewsAJAX Javascript loading message axios
I’m making an AJAX request using the Github API from Axios and wanted to know how I do to, while uploading the information, it give a console.log('carregando'); and create a component written…
-
0
votes1
answer322
viewsLaravel HTTP ERROR 500 linux
I am a full Noob on Linux, was working normally, and Linux installed some updates that suddenly instead of showing the Laravel error screen, I get the screen. HTTP ERROR 500 In the middle of that I…
-
0
votes1
answer184
viewsHow to get back an HTTP POST (IOS SWIFT)
I need to do an HTTP POST for a page that simply returns a literal (which can be "OK" or "ERROR") I’ve missed one tutorial from the WEB that shows how to do this and it returns a JSON, followed the…
-
0
votes1
answer73
viewsDoubt web.config
I need you not to show the actual physical address on a link to download a file on my site. The file link I want it to look like this: [Urlsite]/downloads/filename. And I’m trying to use the…
-
0
votes1
answer633
viewshow to read a result Json from google Directions API
I’m getting this json from google Directions API https://maps.googleapis.com/maps/apidirections/json?origin=-22.8895625,-47.0714089&Destination=-22.892376,-47.027553&key= I need to read it…
-
0
votes1
answer215
viewsCan I get the text from the HTTP request?
HTTP/HTTPS requests are sent as text with the format: In order: The initial line with the HTTP method and the version The headers in the format chave: valor A blank line The body of the request Is…
-
0
votes0
answers183
viewsAngular request does not send post
good night! next...I am making asynchronous requests with Angularjs and it works if use get and params, however if I switch to "post" and "date" it stops sending...I will post here the controller…
-
0
votes1
answer320
viewsXmlhttprequest cannot load no Vue js
My app.See <template> <div id="app"> <h1>{{ titulo }}</h1> <li v-for="usuario of usuarios"> </li> </div> </template> <script> export default {…
-
0
votes0
answers449
viewsLaravel Expired Page, why?
I’m creating a Rest api here, for some reason I get this message "The page has expired due to inactivity. Please refresh and try again." Segue Controller <?php namespace App\Http\Controllers; use…
-
0
votes1
answer111
viewsAPI qrcode Google does not recognize the signal +
I am using a Google API to generate qr code. However, the generated image is not displaying the "+" character. It switches to space. As an example below:…
-
0
votes2
answers242
viewsHttpget parameter not detected
Good afternoon guys, I don’t know why my parameter is not recognized, can you help me? The value does not arrive in c# but this present in the angle c# [HttpGet] [Route("carregarUsuarioPorId")]…
-
0
votes1
answer199
viewsHow to bring an image of a website in the Node API request?
I’m making an application and wanted after giving a request, that the API bring an image of this website as an answer. For example, in giving error 404, I would like you to bring that. How can I do?…
-
0
votes0
answers21
viewsHttp/2 in browsers with http/1.x
Good night, you guys. I am with java web project where I use Servlet 4.0 and because it uses http/2 I have a question: My project’s http/2 will work in browsers with http/1.x as if it were http /1?…
httpasked 5 years, 11 months ago Luan Mello 3 -
0
votes1
answer72
views -
0
votes3
answers233
viewsBadrequest 400 Httpparams Angular 4.3
I’m using the new library of angular to make requisitions, the HttpClient. Along with the 4+ angle I am using here in the company for the backend, Java with Spring (boot). The problem is occurring…
-
0
votes2
answers48
viewsApache slave server
The doubt is quite simple, so I’m sorry for the ignorance. I’m setting up a website with apache and the same will receive thousands of access, the doubt would be, what to do when the access limit of…
-
0
votes1
answer220
viewsHow to enable HTTP Keep Alive
I am developing an application that needs to carry out many back-end requests. I would like to try the model of keeping the connection open: Keep-Alive. But in practice I have no idea where to…
-
0
votes0
answers343
viewsHow to configure . htaccess to block direct access to all directories except public
I have a problem with setting up . htaccess, I want the user to have access only to the public folder, so I created a . htaccess at system root blocking access to all folders and files, and one in…
-
0
votes1
answer65
views -
0
votes1
answer139
viewsUnexpected token node error
I’m having trouble using http to make a call on a API. "{\"error\":\"Unexpected token d\",\"code\":400}" const express = require('express'); const router = express.Router(); const http =…
-
0
votes0
answers72
viewsHow do I make a POST + Redirect with Angular?
Hello, I need to post to a page and redirect along with the post to when load the page display the posted data. The problem is that when I do the post it already brings me the RESPONSE with the…
-
0
votes1
answer76
viewsFlutter Data Passage
I have a button that makes a request get on a server. Data passing is correct however at the time I try to recover in the build class of error. class Layout_ResultadoExames extends StatefulWidget{…
-
0
votes0
answers321
viewsHow to use Ngrok correctly with Angular-cli?
Is there any right way to use Ngrok with Angular? I’m trying to tunnel to my application that runs on localhost, creating a random web (URL) to make available on the internet, so I can perform the…
-
0
votes1
answer652
viewsHow to use a Webhook in Angular?
I have never used any communication with Webhook, at the moment I am receiving communication from API Moip Signatures, when a new subscriber is registered I receive a JSON with the event and…
-
0
votes0
answers26
viewshttprequest with Curl in C returning values
Hello to all who are reading. I am trying to create a code from a simple file md5 hash validation with my web server. Basically I want to send the hash and if it is the same registered in my web…
-
0
votes1
answer65
viewsA data request from another data must respond with 404 or an empty array?
I am working with an API which has the following route users/:id/documents. This route should return a list of documents from a specific user. For example: the route users/:id/documents return all…
-
0
votes1
answer91
viewsHttp to Httpclient (Angular)
I’m trying to update the requisitions Http for HttpClient in Angular. Currently the code is: return this.http.get(`${this.url}/grupos`).map(res => res.json()); After researches I’m trying to…
-
0
votes1
answer40
viewshttpurlconnection on android:
Hello, I’m trying to get the http response code, and I’m using this code : HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setRequestMethod("GET");…
-
0
votes0
answers33
viewsI wanted a function to send to my email
function envia_email(){ var nome = $('#ContactName').val(); var email = $('#ContactEmail').val(); var mensagem = $('#ContactComment').val(); //VALIDAR EMAIL //VALIDAR NOME if(nome == ''){…
httpasked 6 years, 7 months ago Guilherme Ferreira 1 -
0
votes0
answers179
viewsError making android HTTP request
I’m implementing a native android app that requests with a WS. When trying to make the connection in the method connect() of HttpURLConnection I’m getting an error that doesn’t fall into the catch…
-
0
votes0
answers25
viewsDebug - Find the route of my http Rest - Grails
I have a call POST http Rest, where I get a file my parameters and mount it to log in, I believe it is talking because the route I am mounting this wrong, It is missing some bar, or capital letters…
-
0
votes1
answer423
viewsTomcat - RFC 7230 and RFC 3986
I’m having a problem : Error Parsing HTTP request header My apache server Tomcat 8 is rejecting the requests for a system which I did an integration, the error is due to characters that are in the…