Questions tagged as 'http'

0
answers

How can postman send requests without having problems with cors?

Currently I use Angular 2+ in some applications and I'm having trouble solving color problems. When the request is made by Postman, everything happens as expected, but when I try through my application, a cors error is thrown on the console info...
asked by 31.10.2018 / 14:09
1
answer

Is it possible to get the text of the HTTP request?

HTTP / HTTPS requests are sent as text having the format: In order: The starting line with the HTTP method and the Headers in the format chave: valor A blank line The request body Is it possible to get the complete s...
asked by 30.10.2018 / 21:58
0
answers

http-server (Docker template) doing "proxy" for React application

In a simple application made with React created with create-react-app , using Docker template of some link ( Apache , for example), it is common to use a rule in Rewrite with /* passing to /static/ forcing to go to index.h...
asked by 24.10.2018 / 15:51
1
answer

Is it possible to send data in the body and in the url using the PUT method and libcurl?

I'm trying to send the data both in the URL and in the body using the PUT the idea was to make it work just like the POST method, but being the PUT method. This is because I see many requests where the url would be / book / and in the body wo...
asked by 25.10.2018 / 23:49
4
answers

Maximum 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 via POST as well as via GET . I know that if I pass my data via GET , there is a maximum length of URL , varying a...
asked by 16.01.2015 / 12:19
1
answer

Consume API with mandatory parameters

If I have an API that requires two mandatory parameters to be consumed, how should I insert them into a $ http request? self.buscaPrestadores = function() { $http({ method: 'GET', url: self.urlPrestadores,...
asked by 06.10.2018 / 05:23
0
answers

Perl SOAP :: Lite, problems mounting complex request

I'm trying to consume an API using Perl + SOAP :: Lite, for simple requests I can consume the API and get the result, however I need to make a more complex request to access a given API service and I'm having problems. Below is the code I'm w...
asked by 17.09.2018 / 14:08
1
answer

CORS problem when making GET call on Angular 6

When I call the following URL: link directly in the browser or in POSTMAN I get the JSON correctly , but when I try to call the same link via GET in the Angle, I get the error: "Failed to load link ...: Origin ' link > 'is therefore not a...
asked by 11.09.2018 / 22:01
0
answers

How to consume a given Json from an http address

   I'm trying to consume a given Json from an http address, but   I do not know what's going wrong.       I've split the question into two groups my other doubts import { ComprasService } from './compras.service'; import { Compra } fro...
asked by 12.09.2018 / 01:34
1
answer

"Undefined property: stdClass :: $ email" laravel

My validator returns the errors in the request. I would like to check if the variable I save my errors has the email error to then return the correct response. I tried something like: public function register(Request $request) {...
asked by 15.09.2018 / 16:39