Questions tagged as 'http'

1
answer

Upload Image via Post

On facebook, I realized that by selecting an image to post, they would send a POST request to a URL there (which they should try to upload ..) But what I found strange, is that the content of the post looked like this: ---------------------...
asked by 23.03.2015 / 00:14
1
answer

Using a token in an HTML form does it actually protect against CSRF?

   Cross-site request forgery - CSRF is a type of malicious exploit of a website whereby unauthorized commands are transmitted from a user who trusts the website. Unlike cross-site scripting (XSS), which exploits a user's trust for a particula...
asked by 13.02.2015 / 14:09
2
answers

Streaming data on Http in Javascript

Is there a way to send data about Http, but instead of all the information at once, send one part at a time? For example: I make an Http request for GET /produtos . This will return all my products (assuming I did not put a limit). If...
asked by 01.07.2014 / 20:17
1
answer

How to simulate a browser?

More specifically, I'm going to stream music with MP3Skull , which has no API. So far, what I was able to do was to use an HTML Parser and go div by div looking for the common id of all songs. However, the number of results is limited. In an or...
asked by 01.12.2014 / 10:34
0
answers

How to convert the value reported by the If-Modified-Since header into a PHP date (and vice versa)?

The header If-Modified-Since displays the following format of return: Wed, 21 Oct 2015 07:28:00 GMT I need to compare this date in this header item with the date a file was created on my server, using the filemtime($arquivo)...
asked by 23.10.2018 / 15:48
1
answer

Redirected from the domain

I have a domain by Locaweb that redirects to my ip from vps via A and CNAME. It normally redirects the link mainly however when and typed link with http: // without the www and also even if http: // it is redirected to the main site other than a...
asked by 17.10.2018 / 14:13
1
answer

Check non-angular http status

I have the following code, I need to check the status that the server returns to WebApp, I have the following code: this.http.post (this.url,json) .subscribe ( res => { console.log(res); },...
asked by 26.12.2018 / 18:46
1
answer

Error making a POST request Angular (SyntaxError: Unexpected token in JSON at position 0 at JSON.parse)

Angular: public urlConvenio: string = "http://localhost/teste/sistema/backend/controller/convenio/listar.php"; const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' }) }; //REQUISIÇÃO public enviaDado...
asked by 08.09.2018 / 00:49
1
answer

HTTP (Post) Bad Request 400 - How to solve?

I am making a post, but my server is not sending an error (400). Below is the server code. const express = require('express'); const app = express(); const bodyParser = require('body-parser'); const mysql = require('mysql');...
asked by 28.09.2018 / 21:48
1
answer

Proxie on Ionic

I'm having trouble doing http requests on Ionic, I saw that one way to circumvent CORS is by using proxies. I tried something like: ionic.config.json: { "name": "appIonic", "integrations": { "cordova": {} }, "proxies": [...
asked by 07.08.2018 / 18:48