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
answer2343
viewsReceiving JSON with PHP via $http.post()
I want read a JSON in PHP received from a function $http.post() from Angularjs, I’ve tried using json_decode() and set up the header (both in PHP and Angular) but it didn’t work. PHP accuses it to…
-
1
votes2
answers444
viewsStreaming data over HTTP in Javascript
There is some way to send data over Http, but instead of all the information at once, send one part at a time? For example: I make an HTTP request to GET /produtos. This will return all my products…
-
1
votes0
answers123
viewsHow to get a Facebook API token?
To better understand how the Facebook API works, I would like to create a request to log in and get a token. However I can only find explanations through the SDK or the API explore, located on the…
-
1
votes1
answer494
viewsHow to separate HTTP and IMAP access from the same domain on separate servers?
I have a hosting account at Locaweb, of course IMAP and HTTP. I’m intending to migrate to AWS (Amazon Web Service). However, before making such a change, I first intend to change only access to the…
-
1
votes1
answer109
viewsWhat is the reason for the delay of the first consultation with Amazon RDS?
Always after a brief period without queries, when making a request to Amazon RDS (Mysql), it takes almost 20 seconds, while the following requests usually happen, as you can see in the image,…
-
1
votes1
answer137
viewsHow to simulate a browser?
More specifically, I’ll be streaming music with Mp3skull, which has no API. So far, what I’ve been able to do is use an HTML Parser and go div by div looking for the common id of all the songs.…
-
1
votes0
answers478
viewsPicking up http request cookies
Good afternoon, I am having trouble picking up cookies when I make an http request for a particular address. Using firefox+firebug I see 5 cookies. Already through my Java program I can only see 1…
-
1
votes1
answer117
viewsIt is possible to get the Error Number returned by Page
I created a page (following the one taught in this page ) error for Error 404, but this way would have to make an error page for each HTTP Status, then Try to make a gnerica where it was possible to…
-
1
votes1
answer1216
viewsDoes using a token in an HTML form really protect against CSRF?
Cross-site request forgery - The CSRF (Cross-site request forgery- Cross-site request forgery) is a type of malicious exploitation of a website by which unauthorized commands are transmitted from a…
-
1
votes1
answer1813
viewsSend image via post
On facebook, I seem that when selecting an image to put in the post, they sent a request by the POST method to a URL there (which should handle the upload..) But what struck me is that the content…
-
1
votes1
answer886
viewsFunction http_build_query
I wonder what the function is for http_build_queryin php. I read the manual, but it was vacant for me. http_build_query It is correct to use it within this context? $cURL =…
-
1
votes1
answer163
viewsIs it possible to request HTTP(POST, GET...) with android for any domain?
I have a back-end with PHP with URLS that return data to my front-end with Angular. It works normally because they are on the same domain. In the case of an android app that is outside the domain, I…
-
1
votes0
answers124
viewsChanging ngResource save and using CORS (Cross Domain)
I’m developing an angled application, and I’m having a problem with the ngResource module. I need to call a URL from another system, for that I already added the necessary headers in the other…
-
1
votes1
answer170
views -
1
votes1
answer133
viewsC# How to get the duration of an MP3 that is in an HTTP address
I need to get the MP3 duration information that is on an HTTP server using the C language#. I tried Taglib# and Naudio, without success.
-
1
votes4
answers1474
viewsservice returning result of a $http
I am creating a service for an application Angularjs where I should query a Ws and return a value to a variable. My problem is that when I use the $http I can’t get that amount back if I use a…
-
1
votes1
answer569
viewsHttpwebrequest with SSL
When I have to play a few steps (GETS and POSTS) of an access all https using .net I need the use of ServicePointManager.ServerCertificateValidationCallback. Then there came my doubt, it is…
-
1
votes2
answers477
viewsInvalid URL server error 500
Whenever having access a URL that does not exist on my site, this error appears The server encountered an Internal error or misconfiguration and was Unable to complete your request. Have any way to…
-
1
votes0
answers58
viewscall an http request control on Angularjs
how can I call a control file from an http request (get) $http({ method: 'GET', url: 'dashboard.do' }).then(function successCallback(response) { // this callback will be called asynchronously //…
-
1
votes1
answer79
viewsHttp request - log
I am developing a Curl process, and for this I am checking the pages necessary to manage the urls. However there is a page that performs Http Request 302 (redirect), and I’m unable to capture it as…
-
1
votes1
answer1932
viewsError 502: Bad Gateway - How to resolve
What’s going on Starting yesterday morning, in a certain part of the site, in the user register to be more exact, many times when trying to perform it, Nginx returns the message of 502 - Bad…
-
1
votes0
answers209
viewsProblem with Httpwebresponse. Does not answer
I hope you can help me, I have a problem when I try to see c# make a request on my server ( the request is slow, takes about 10 minutes to be processed and returned ) For quick requests everything…
-
1
votes1
answer334
viewsUser login with Webservice
I would like to ask the connoisseurs of Java (Android) to guide me in this code: Mainactivity: @Override protected void onCreate(Bundle savedInstanceState) { Log.d("TESTE", "Iniciou MainActivity");…
-
1
votes1
answer600
viewsHandling of $http’s replay.get
Hello I’m looking for information in a local database with the following code: var app = angular.module('app',[]); app.controller('conexao',function($scope, $http){ $scope.names = [];…
-
1
votes1
answer783
viewsError with GET HTTP Special characters
I’m having some trouble doing Gets HTTP. When the page text has some special character, the answer ends up deforming. Example: os participantes deverão: when the original text was os…
-
1
votes1
answer213
viewsCellular Ionic http request framework
I have an Ionic page that makes request for a page in codeigniter, I send the data and receive correctly, no problems in the browser, but when I turn into . apk and I run the application on the…
-
1
votes1
answer107
viewshttppost is not solved in my class in my application
I can’t import class from org.apache.http.conn on my Eclipse app. This is my class: package br.com.cadastro.cadastrocompleto.suporte; import java.io.IOException; public class WebClient { private…
-
1
votes2
answers3885
viewsExtract JSON object item with Angular.js
I have an Angular application that uses the Google Maps API to search for latitude and longitude, but I’m not getting the latitude and longitude separately. My application works as follows, the user…
-
1
votes1
answer334
viewsRequest by browser works, but Java gives error 301
When I make an HTTP request to that URL, It works and I get a CSV file. However, when calling the same URL via Java (by get or post), I’m getting code 301. Could someone help me? Here’s my code:…
-
1
votes1
answer128
viewsTroublesome socket response on Android NDK
I’m trying to implement this library, Parson, in C, but when I try to manipulate the data obtained via connection socket(ONLY link), I get a null, what doesn’t happen when I manually put the json in…
-
1
votes0
answers425
viewsHow to use a credential in the url when the user’s name is an email? Is it necessary to escape?
For you to make connections via SSH, usually use credentials directly in the url not be necessary to set the user and password all the time. Example: ssh://login:[email protected]/repos/repositorio.git…
-
1
votes1
answer211
viewsImplement Loader while loading the page
I would like to better understand a resource widely used in web systems where you access a page it displays a 'Download' while the content is not ready. How to implement this in a PHP system that…
-
1
votes1
answer216
viewsError with retrofit
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $ public interface RestApi { @GET("/posts")…
-
1
votes0
answers67
viewsProtocols for multimedia transfer?
I’m developing a video site, and these are stored on a windows server, currently using http://path.mp4 to fetch the video files for the HTML5 player, but then I wondered if HTTP is appropriate for…
-
1
votes1
answer163
viewsKeep connection active after a POST request
I am trying to create a script to activate the QOS bandwidth control service of my router, but I am doing something wrong because I can’t keep the connection after making a POST request. local host…
-
1
votes1
answer85
viewshttp post error
Friends, I would like to have the save method in the class itself, and I’m not getting it, I’m beginner in typescript. import { Injectable } from '@angular/core'; import { Http } from…
-
1
votes1
answer246
viewsCurl + HTTP Nodejs Server
Good morning! I created an HTTP server using nodejs as follows: var express = require('express'); var app = express(); var bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({…
-
1
votes1
answer76
viewsRequest Angularjs being executed first incorrectly
In a controller, I have two HTTP requests: function findProfessionalEmail(professional) { EmailHunter.findProfessionalEmail(professional.company_name, professional.first_name,…
-
1
votes1
answer27
viewsHow to set up a repository I created for Spring Security (Basic)
I’m on a project and we’ll use Basic Auth of Spring Security, I would like to know how to make the configuration so that it uses the users created with my Repository. Entity: @Entity public class…
-
1
votes1
answer176
viewsWhy does Retrofit make an exception when the status code is 204?
After a consultation GET only to check if a content exists on the server, the return is 200 (exists) or 204 (there is no). Why does Retrofit trigger the exception below when the server returns the…
-
1
votes1
answer408
viewsDifferences between Cache and CDN usage
What are the advantages and disadvantages when using CDN (Content Delivery Network) and Cache and how they can complement each other?
-
1
votes1
answer81
viewsConcurrent.Utures and Class Object
I am trying to create a class (Processor) that runs a series of functions to get results from a State-to-State API. (STATE) 1- READ data from a table. 2-SEND request for the API to process. 3- WAIT…
-
1
votes1
answer129
viewsIdentify website pages with broken HTTPS padlock
I’m working on an e-commerce site and I noticed that some pages are padlocked https and I could fix them. But nothing guarantees me whether there are other pages with the same problem. There’s a…
-
1
votes2
answers655
viewsHow to Catch JSON Data with Angular
I am studying angular and I am trying to receive data in JSON format from a webservice, but is with the following error: Xmlhttprequest cannot load http://localhost:8080/Newspaper/data/newspaper. In…
-
1
votes1
answer233
viewsAsp.net HTTP Client get with query string
Developed on an Asp.net mvc I intend to implement an HTTP request that with this part of code the meteorologies present me a "list" with the parameters of the query…
-
1
votes1
answer605
viewsMaximum body size of a POST request
I have an APP that sends data via POST to a WEBSERVICE. The problem is that I have a BLOB field (the data inside it is giant) and I send about 30 records per request. My question is, there is a…
-
1
votes1
answer118
viewsHow to recover php parameters passed by the $http({ ... data: ...?
I have my controller that requests login: app.factory('LoginService', function($http, $location, SessionService) { return { login: function(data, scope) { $http({ method: 'GET', url:…
-
1
votes1
answer605
viewsHow to make notifications like Facebook? Angularjs or Javascript
I’d like to include notifications in my app. The app will be in Ionic, Angularjs, jQuery, Nodejs... is there a way for the app to run a function every X time? This function would get in Nodejs...…
-
1
votes1
answer440
viewsUpload images with c# windows Forms and php
I’ve been trying to find a solution to my problem for at least two weeks and I can’t make it work. The idea is, I have an application Windows Forms written in C#, in which I will have a…
-
1
votes1
answer820
viewshttp post with Bodyrequest Sqlserver
Hello, How do I get a post request by passing an xml as date? tried so on another GET request and it worked: DECLARE @Tabela TABLE ( CampoXML XML); DECLARE @URL VARCHAR(8000) SELECT @URL =…