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
votes1
answer36
viewsDoubt Function / Callback Golang
Do I necessarily need to deal with Sponse for the function to be executed? As it stands it says that the variable "tweet" was declared but not used, but as it is a POST request, I see no point in…
-
0
votes0
answers16
viewsHow to insert certificate in request?
To get the access token of a payment api I need to send two files, web.key and web.pem (CRT File = File .pem KEY File = File .Key). In Postman works perfectly by adding these certificates, now I…
-
0
votes0
answers351
viewsError when viewing API in Angular
Good morning, I’m trying to access my API through the angular method get of the http module, my files are in my repository github in case anyone wants to take a look. I am following this tutorial…
-
0
votes1
answer40
viewsNodejs ignores request POST made by Angular
Context: I’m using a virtual machine , ng serve is running on port 4200, and the nodejs on port 8024, when I try to send data to the server nothing happens, the angular part apparently shows no…
-
0
votes0
answers33
viewsServer does not search style sheets
I have a site that generates the following errors: Can someone give me a hand with this? This site on Localhost (using xampp) works normally, there is nothing missing. But it is only I bring to the…
-
0
votes0
answers756
viewsHTTP POST request with x-www-form-urlencoded in Agular 6
I need to make an HTTP POST request with x-www-form-urelcoded at angle 6. I tried something like: pesquisaEmail(email): Observable<any>{ let headers = new HttpHeaders();…
-
0
votes1
answer85
viewsCannot read Property 'token' of Undefined when receiving angular localstorage object
My login function keeps on localstorage a token returned from the api: localStorage.setItem('token', res.data.token); Right after logging in, I need to pass this token to another function, but I…
-
0
votes0
answers59
viewsAdd more than one append to the angular http header
I’m making a Interceptor which should add to my header a token and an Authorization whenever the value of authToken is different from null. My problem is how to add a append in my header. I tried…
-
0
votes1
answer64
viewsHow to show the Controller output in View c#
I would like how I can show my result that is in the controller method in the View. EX: Controller: public class SMSTarifado { public int QtdTarifados { get; set; } public int QtdEnviados { get;…
-
0
votes1
answer1047
viewsAjax request to an API
I am trying to request a third party API through the following code: <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script> <script> $(function(){…
-
0
votes1
answer765
viewsCORS problem when making GET call at Angular 6
When I call the following URL: https://script.google.com/macros/s/AKfycbxk616n8wjgGeHZIc3Hm66Kcv4ZtWKZJQnEKLsxZC9LpoDK8mQZ/exec directly in the browser or in POSTMAN I get JSON correctly, but when I…
-
0
votes0
answers68
viewsHow to consume a Json data by coming to an http address
I’m trying to consume a Json data coming from an http address, but I don’t know what’s going wrong. I divided the question into two groups my other doubt import { ComprasService } from…
-
0
votes1
answer691
views"Undefined Property: stdClass::$email" Laravel
My Validator returns the existing errors in the request. I would like to check if in the variable I save my errors has the error email to return the correct answer. I tried something like: public…
-
0
votes1
answer200
viewsConsume API with mandatory parameters
if I have an API that requires two mandatory parameters to be consumed, how should I insert them in a $http request? self.buscaPrestadores = function() { $http({ method: 'GET', url:…
-
0
votes1
answer260
viewsIs it possible to send data in the body and in the url using the PUT and libcurl method?
I’m trying to send the data both in the URL and in the body using PUT the idea was to make it work exactly like the POST method, but being the PUT method. This is because I see many requests where…
-
0
votes2
answers175
viewsConfirmation of site or host service status
I built this script to run on Linux, but it is not working as expected. I’m using the curl to find the state of the HTTP connection. He returns to me: HTTP/1.1 200 OK Mais alguns conteúdos do site…
-
0
votes0
answers22
views -
0
votes0
answers78
viewsAccess-Allow-Control-Origin does not restrict access from other domains
I am creating an Api with Nodejs, where I set the application header to work properly Cross-Origin Resource Sharing. app.use(function (req, res, next) { res.header("Access-Control-Allow-Origin",…
-
0
votes2
answers225
viewsGet Access Token in Ionic
Through the command prompt I get an access token. curl -v https://api.sandbox.paypal.com/v1/oauth2/token \ -H "Accept: application/json" \ -H "Accept-Language: pt_BR" \ -u…
-
0
votes0
answers61
viewsProblems with the request npm module
I’m having some difficulty making HTTP requests. The code: import Request from 'Request'; function xxx (tomboCodBarra){ const options = { url:…
-
0
votes1
answer756
viewsDoubt in Python request Django GET/POST
Good evening, I have a problem that I cannot solve in Python 3.6.7 and Django 2.1.1 I have the following codes: views @login_required def profile_provider(request, provider_id): provider =…
-
0
votes2
answers669
viewsInvalid character in HTTP Request C#
I need to develop a Webapi that you pass a Query and it returns the google search with title and url. I am using C# and . NET, when I do the HTTP request to receive page data, it is returning the…
-
0
votes1
answer181
viewsAngular - How to send an object inside a model in a POST method?
Good afternoon, I’m having a problem sending a POST to a published API on account of one of the expected parameters being an object, so the expected json is as follows : {"Cargo": string,…
-
0
votes0
answers57
viewsHTTP frame loading HTTPS
Good afternoon Personal, They have a situation where the SSL certificate has been installed on IIS, but does not validate HTTPS, because the certificate is for domain.com.br and not for the server’s…
-
0
votes0
answers83
viewsProblem with the interaction of an http server with Arduino and Axios js
I am creating an http server on Arduino, which given a request it responds to the following: client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println("Connection:…
-
0
votes0
answers1348
viewsAngular: CORS error when making http GET request
I need to receive a list of questions from my API and store in an Array in my angular component, I’ve done it several times in other projects and it always worked out that way, only this time there…
-
0
votes0
answers40
viewsHTTP protocols
I’m new to development and I’m learning how to make a web service below this my method of consultation, insertion and removal. they are already working, however I wanted to know how to pass in the…
-
0
votes1
answer212
viewsSending numeric value of an Enum by HTTP request in Java
I have a problem in my system, in my back-end in Java com Spring Boot I have a class that has a property that’s kind of a Enum that I created, and my Front-end which is in Angular when making a…
-
0
votes1
answer109
viewsHOW TO SAVE A SUBSCRIBE RETURN IN A VARIABLE?
My basic code: ngOnInit() { const today = Date.now() this._schedulesService.getSchedules().subscribe( (res: SchedulesModel[]) => { this.schedulesToday = res this.schedulesToday.filter((schedule:…
-
0
votes0
answers21
viewserror in ajax request
Dear friends, good morning! I have a mistake I can’t fix, log on: index.html:1 Access to XMLHttpRequest at 'http://meusite.com/testmail.php' from origin 'null' has been blocked by CORS policy: No…
-
0
votes1
answer172
viewsHow to redirect url - redirect 301 - through a request ? (Httpurlconnection)
I’m trying to get a status code[ redirect 301, Location : ] through a request. This request brings as parameter an id associated to a database stored url (in this case, a Map), with the id, I search…
-
0
votes2
answers998
viewsHTTP Flutter request sending xml data to body
I would like help processing an HTTP request in Flutter (in this case using the SEARCH method to filter files on a Webdav (Nextcloud) file server where I need to send XML type data in the request…
-
0
votes1
answer28
viewsHow to access a vector within a PHP obejto and insert the data into the Mysql database
I would like to know how to access the array of addresses within this object: And insert the attributes inside a table in Mysql, I am doing it as follows foreach ($this->endereco as $elemento) {…
-
0
votes0
answers77
viewsWhat do those 3 initial bytes mean in the response read after Hbtip’s Open() Tipclienthttp() method?
When I call the Read() method, right after an Open() of the Tipclienthttp() class, I get a JSON string from a PHP page. However, I noticed that there are three bytes of strange characters that…
-
0
votes0
answers386
viewsProblems passing Query String as parameter in nodejs
I’m trying to make the functionality of login in the Nodejs, for this I created a method get who receives the email and the password as Query String and performs a query in the database (MySQL)…
-
0
votes0
answers43
viewsHow to capture Httpentity on an Httpresponse more than once?
In my project, I created a Helper class called Httpresponsehelper to get the body of my Httpresponse. However, when executing the command HttpEntity httpEntity = httpResponse.getEntity() it only…
-
0
votes1
answer94
viewsHTTP request using RAW/JSON Angular 7
Good afternoon, I’ve tried almost everything but I can’t do a POST at the angle using a list, always returns error 500. This is the Component call. ngOnInit() { let CSVProduto:…
-
0
votes1
answer40
viewsPostman returns JSON, but Fetch request returns status 204 in browser
I’m making a request with the function Fetch(), but I always get the same message, with 204 status: However, when making the request via POSTMAN, I receive status 200, with the necessary…
-
0
votes0
answers40
viewsHttp requests the local api in Laravel through mobile APP in Flutter
Good night, I have an API in Laravel that is only running locally through Valet and I am developing a mobile APP in Flutter where I intend to make requests to that same Laravel API. I have already…
-
0
votes1
answer57
viewsError: Undefined Binding(s) when I’m going to give a
I’m trying to make a login system , I wrote the code and when I do it works perfectly , but when I made the connection to the front end using Axios it can’t send the typed data to the database. I…
-
0
votes0
answers20
viewsHow to find the Status Code of a feign. Response when there is no server response
If you use Postman to request a server, I always get Status Code. We will use this website as example for server. Where I put Status Code 599 as seen: Now using the Postman: How can I get this code…
-
0
votes0
answers27
viewsJSON data post by CURL
I’m starting to use JSON-SERVER, I don’t have much knowledge yet. I’m trying to make a JSON data POST with CURL in windows cmd. I’m using the following code: curl -d "{"nome":"usuario1", "idade":40,…
-
0
votes0
answers24
viewsSecurity Failure | Java Web Authentication
Context: I am building a CRUD in Java Web to study and acquire knowledge. I am not using any Framework, only JSTL to have more elegant code in Jsps. I recently implemented system authentication…
-
0
votes0
answers14
viewsCreation of Resources in Woocommerce
Good afternoon, I’m creating a flutter/Dart app and I’m not getting permission to create a new client. I’ve already modified . htaccess and everything. In my cPanel I have 5 domains and as I am…
-
-1
votes1
answer158
views -
-1
votes1
answer150
viewsSend a POST and how do I recover the data in ANGULAR?
onSubmit() { console.log(this.formulario.value) this.http.post(this.configUrl, (this.formulario.value)).pipe( map(res => res)) .subscribe(dados => console.log(dados)) } This is my post code,…
-
-1
votes1
answer149
viewsIs it possible to receive real-time information from Chrome in Python?
Hello. I wonder if there is how to get information from the proxy that is available by default in Google Chrome (the developer tools) to the point that I can use it in real time in Python without…
-
-1
votes1
answer48
viewsStorage of Cookies and Requests with Cookies
Page cookies are sent to the server in all requests or only when it is intentionally sent through javascript? The localStorage is stored in the browser cache, and the cookie? It is stored in the…
-
-1
votes1
answer352
viewsHttp Post in Angular
Guys, I’m trying to do an http post to send a json to the server but it’s giving an error. My code is as follows the Imports import { Component, OnInit } from '@angular/core'; import { FormGroup,…
-
-1
votes1
answer64
viewsQuery error for a JSON URL "getContentHandler, getContent"
I am starting the development of an app that performs queries to various websites with JSON return and treat this information in several ways. To test the Urls I use the code below, works well with…