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
-
1
votes1
answer219
viewsAxios + . Net Core - Post with file
I need to send the data of a form along with the Axios file and return a JSON with . netcore, I can receive the file normally in the controller but the form data cannot receive. Follows JS code…
-
1
votes1
answer103
viewsHow to access json Response fields in nodejs?
I’m studying a little bit about nodejs and am facing difficulties to capture and access json Sponse, For example: My Getbyid exports.getProduto = function(req, res) { const produtoId = req.params.id…
-
1
votes0
answers82
viewsHow to set up CORS in Springboot?
Recently I decided to try developing in java with Spring boot. I’m not very experienced in this framework. I tried to make a complete application, with back-end with this technology and front-end…
-
1
votes0
answers76
viewsREQUEST POST
Greetings, I have a test python server: from flask import request, Flask app = Flask (__name__) @app.route ('/Teste', methods=['POST']) def teste(): recebido = request.form['variavel']…
-
1
votes0
answers54
viewsServlet mapping via annotation @Webservlet is not working
I’m a beginner in Javaweb development. I’m using Java version 11 and Tomcat version 9.0. When using the annotation @WebServlet(urlPatterns) in the classes OiMundoServlet.java and…
-
1
votes2
answers96
viewsProblem when performing HTTP request on Android
I can make an HTTPS request normally in an app, but it doesn’t work when it’s HTTP. You would have to configure something in Android Studio to be able to make the HTTP request? The code of my class…
-
0
votes1
answer903
viewsHow to make one file redirect to another?
A HTTPS page of mine is requiring me to only link to HTTPS resources. Otherwise, HTTPS warning messages appear. I wanted it to be possible to download a file from the site, without appearing any…
-
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
votes2
answers3665
viewsVariable global angular problem
app.controller('controllerPrincipal', function($scope, $http){ var resultado; $http({method: 'GET', params: {id: 2}, url: 'url'}).success(function(data) { // limpando o retorno var p =…
-
0
votes2
answers410
viewsUnknown Error: "null" when running an Httppost with Parameters
Explanation: I own a simple Android app, and also a Nodejs server. I have the following permissions on AndroidManifest.xml of my application: <uses-permission…
-
0
votes1
answer125
viewsHow to check if the server is sending content using GZIP compression?
Is there any browser feature to check if the server is sending content (HTML, JS, JSON, CSS, etc.) using gzip compression?
-
0
votes1
answer57
viewsHow to use Named Parameters in Angularjs $http?
Is there any way to use named parameters in the method $http angular? With ngResource it is possible to do this: var User = $resource('/path/to/user/:id'); $scope.user = User.get({id: 1}, function()…
-
0
votes1
answer1008
viewsError when inserting data accentuated
I am sending the data by URL to my webservice if I put the path by example web browser in Chrome: meuwebservice/inserirusu/João_da_Silva/fotógrafo and call a method to display shows so: Nome: João…
-
0
votes1
answer1895
viewsHTTPS Sslv3 Indy Delphi 7 error
I am trying to make connection via HTTPS using Sslv3(required to consume a specific service), but when I try to perform the post, I get the following error: At first, I think it’s a problem in the…
-
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
votes1
answer530
viewsProblems with Xmlhttprequest Angularjs
I have a $http.get request in my application as seen on Angularjs ng-repeat does not return data, always returns empty However I am receiving a Warning in the browser console with the following…
-
0
votes1
answer229
viewsGet data on a PUT route using Silex
I would like to know how to obtain data passed to a route put using the Silex. For example : $app->put('foo/{id}', function(Request $request, $id) use ($app){ return…
-
0
votes0
answers720
viewsGet status code of current request
I have a request made by Jqueryfiledownload that when error occurs the server returns different types of status. I need to act on the client according to these errors. Other than jquery ajax I can’t…
-
0
votes1
answer82
viewsHTTP Status 404 - /Alfresco/testCMISfromJS.html
I am trying to run an HTML file in Alfresco, which I put inside the folder (directoralfresco)/Tomcat/webapps . Then I tried to run http://localhost:8080/Alfresco/testCMISfromJS.html but I get the…
-
0
votes0
answers128
viewsDefaulthttpclient is decrepated in Android app
I’m doing a JSON integration in my application, but when I use DefaultHttpClientdisplays the message: 'org.apache.http.impl.client.Defaulthttpclient' is deprecated. Follow the code below: public…
-
0
votes2
answers813
views$http works on browser and not android device
I have an application developed using Ionic Framework, is a hybridized application and we tested done in the browser worked perfectly when I generated the file . apk and tested both in emulator and…
-
0
votes0
answers196
viewsGlassfish: Trying to access the server through HTTPS
I have Glassfish 4.0 running on my local machine. I then sought to add an http Listener, as follows: asadmin> create-http-listener --listeneraddress 127.0.0.1 --listenerport 80…
-
0
votes1
answer230
viewstimeout to $http request (search for 5 seconds, if not found, returns 'error')
I am setting up a $http request for zip code, it happens that sometimes the API takes too long to return a reply, and the user gets stuck to proceed at checkout. function worked, but when I tried to…
-
0
votes2
answers214
viewsCakephp version 1.3.15 Error 500
I’m working on a project in Cakephp that I can’t test on localhost. I took the project already started and as I can not do the tests, put straight keeping always the backup and work like this is…
-
0
votes1
answer332
viewsRecover value Angularjs POST
How to recover the value in php file when I use this Angularjs post method? $http({ method : 'POST', url : 'xxxxxxx.com/consulta.php', data : JSON.stringify($scope.newName), headers : {…
-
0
votes1
answer268
viewsAngular request $http is not returning data
Javascript code $http({ url: "http://app.calculadoradesementes.com.br", method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, data: { nome: "Rafael", email:…
-
0
votes2
answers98
viewsSend querystring in a PHP request
I need to access a page that has a predetermined query, but I don’t want the user to be redirected to page, just send the request.
-
0
votes1
answer281
viewsError while running an Httpresponse in Android Studio
I am trying to send a string from an Android app to a PHP page, but when I send it, an error occurs in the method Httpresponse Response=httpclient.execute(httppost); In case anyone can help me with…
-
0
votes1
answer347
viewsError calling REST with Angularjs
I’m using the angular $http to make REST calls on my server, but I’m having a problem: No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is therefore not…
-
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…
-
0
votes2
answers705
viewsUse Ftpwebrequest with Uri https
Srs(as), good afternoon, I am creating a service that will upload some files to an FTP link, however this is like HTTPS (https://path/path). occurs that the class Ftpwebrequest does not allow the…
-
0
votes1
answer198
viewsStatus 200 data Undefined Angularjs
I’m building an angular application, where I give http.get in a url, the status comes 200, but the date comes empty. In the api where I built, I return the json array, and in the angular webservice,…
-
0
votes2
answers620
viewsCRUD with Angularjs and PHP
Good night! I got the following: var carregarUsuario = function () { $http.get("buscar.php").then(function (retorno){ console.log(retorno.data); $scope.usuarios = retorno.data; }); };…
-
0
votes0
answers320
viewsExternal redirection on express
Galley, How do I change this line of my code: app.use(express.static(__dirname + '/public')); For 1 external redirect, for example redirect to http://www.google.com…
-
0
votes1
answer108
viewsApache/PHP returning default http status
I am creating a REST api in PHP, and in certain situations return an HTTP status with the specific error message for what occurred, for example, 403 Invalid Access Key rather than simply 403…
-
0
votes0
answers119
viewsError in http Connection org.json.Jsonexception: End of input at Character 0 of
When I try to catch one JSONArray of the internet, it presents an error. Error Error in http connection org.json.JSONException: End of input at character 0 of This error happens when it will try to…
-
0
votes1
answer105
viewsIs it feasible to place an Idhttpserver in a Mobile App to receive instant messages from a remote server?
I intend to make an application that receives notifications without consulting the server at all times, and that is able to run in the background on Android. I will use the Firemoney platform, which…
-
0
votes1
answer302
viewsError 500 (Internal Server Error), when I try to create a session
I am trying to create a session for a login using Java, vRaptor, Hibernate, Angularjs. But when the session will be created I get this exception (500 (Internal Server Error)). This is my session…
-
0
votes3
answers363
viewsPrint values from the same variable via GET PHP
I need to print on the screen the values of the same variable via $_GET, as the example below.…
-
0
votes2
answers56
viewsProblem . htaccess for www-free addressing
When I type in the browser phimodasecia.com.br my site/store enters (is redirected) with error as below: https://www.phimodasecia.com.br/https://phimodasecia.com.br/ My setting for . htaccess is #…
-
0
votes1
answer86
viewsExtract data from HTTP Auth with PHP
I want to access a URL of my site as follows: http://username:[email protected] How do I, with PHP, receive data from Username and Password without using Curl? There is the possibility?…
-
0
votes1
answer118
viewsHTTP libraries/HTTP server
My question is about web servers and libraries focused on protocol HTTP. In PHP you can use "apache" as a web server, but in other languages the same stack is used? This doubt came to me when…
-
0
votes0
answers94
viewsGeolocation function: http vs https
I’m making an application that should identify the user’s location and through an API call (https://openweathermap.org/api), inform the weather conditions of the place. To know the location, use the…
-
0
votes0
answers238
viewsXamarin.Forms Android Error - new Httpclient()
This error (image) appears whenever you arrive on this line: using (var client = new HttpClient()) This is the complete code. using Newtonsoft.Json; using System; using System.Collections; using…
-
0
votes0
answers218
viewsAuthentication Login Android
The app I developed for a client is composed by a native login screen and I need to authenticate the login by sending to the URL of the customer store that is in ASP the access data (user and…
-
0
votes1
answer324
viewsHttpurlconnection - Use php to connect to Mysql
I am trying to fetch the data of a user saved in an external database to log in/register. However I run the system and there is no Exception, but it does not connect. I tested the php that I am…
-
0
votes1
answer186
viewsHttpsessionlistener a single session per user
How can I make only one http session is open per user on the system. Main technologies in the project: Spring 4 JSF 2.2 Hibernate 5 Example: The user Juca, works on your computer using 3 browser.…
-
0
votes1
answer904
viewsHTTP request limit and SQL queries
I am developing a system that will have a large amount of requests and would like to know the opinion based on your experience. 1) A server running apache with php and 64GB of memory, would it…
-
0
votes1
answer226
viewsConsumir Webservice
Hello, I have a service link http://example.meuwebservice:(port)/paraexample/ that when accessing via web browser, asks me for login and password and can result in json (only after entering username…
-
0
votes2
answers446
viewsPHP in Browser Write , Read and Update . txt , Locally
In Client Browser ! Locally... How can I create and save to a file . txt local on the client machine the value of two variables String . This script is in the login and whenever the login is done…