Questions tagged as 'http'

1
answer

Ajax request to an API

I'm trying to make the request to a third-party API via the following code: <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script><script>$(function(){$.post({url:url,contentType:"application/json;...
asked by 09.08.2018 / 03:29
2
answers

How to validate data securely on the frontend?

Second of @PauloAlexandre, it would be possible to validate the data only on the front, so that the back only receives the data ready I know that it is possible to limit, through CORS, the origin of the request among other things But is i...
asked by 26.07.2018 / 01:58
1
answer

Nodejs ignore request POST made by Angular

Context: I'm using a virtual machine, ng serve is running on port 4200, and nodejs on port 8024, when I try to send data to the server nothing happens, the part of the angle is apparently error-free. When I use postman to send a...
asked by 24.06.2018 / 21:57
1
answer

How to use an Angled Webhook?

I've never used any communication with Webhook, I'm currently receiving communication from the Moip Subscriptions API , when a new subscriber is registered I get a JSON with the event and subscriber information that was created. I'm using R...
asked by 03.03.2018 / 17:02
2
answers

How to make an HTTP request in Ruby?

How do I make an HTTP request in Ruby? I need to implement an API, and for this it is necessary to make a REST request for such a URL, how do I POST such a request?     
asked by 22.12.2017 / 19:24
1
answer

Change user agent

I need to change the user agent on mobile. I tried with pure php but it did not work, I'm using Mobile Detect, until I can detect when it's mobile, but I can not change the user agent. The example I followed was this if(!$detect->isMobil...
asked by 18.01.2018 / 15:32
1
answer

Google Chrome Redirecting to HTTPS on localhost or virtual host

Good morning, everyone. Recently, I do not know if it was some 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 it is virtual such as www.equipe.c...
asked by 18.12.2017 / 12:20
1
answer

Doubt web.config

I need you to not 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.extension And I'm trying to use the following code in my web.config:...
asked by 09.08.2017 / 16:55
1
answer

XMLHttpRequest can not load in Vue js

My app.vue <template> <div id="app"> <h1>{{ titulo }}</h1> <li v-for="usuario of usuarios"> </li> </div> </template> <script> export default { name:...
asked by 28.08.2017 / 20:26
2
answers

HTTP return 0

I'm having a rather strange problem .. I need to return the status of some web addresses for the application, so I used the code below: The algorithm takes a URL as its parameter, so it returns me the HTTP status. If it's 200 , I know it'...
asked by 02.05.2017 / 15:55