Questions tagged as 'request'

2
answers

What can I use to differentiate two POST requests in php

I'm doing a web system with php, which has a conditional deviation to check if the request is a repeated post or not, I did this to ensure I would not be giving multiple repeated inserts in the database, however it has a part of the system that...
asked by 21.02.2017 / 15:14
1
answer

Sending form via Ajax in Laravel + Request

I have a registration form for people. I need to send it with Ajax to not reload the page. So far, I have the following ready that I followed for a tutorial. Sending Js. $("form#pessoasCadastrar" ).submit(function( event ) { event.p...
asked by 30.04.2016 / 16:56
2
answers

Form post does not work in Laravel 4

I'm trying to send data from a form via the POST method, but it's not going to work at all. Follow my code // routes.php Route::any('/', function() { echo Request::getMethod(); // Aqui esta sempre retornando GET return View::make(...
asked by 17.10.2014 / 04:18
0
answers

Clash Royale API request with pure JS

I'm trying to make a request from the Clash Royale API ( link ) Returns the following error: Access to fetch at 'https://api.clashroyale.com/v1/players/%23C8Q2QR08' from origin 'https://deckroyale.now.sh' has been blocked by CORS policy: Re...
asked by 27.12.2018 / 04:57
0
answers

AWS - How to do CRUD on S3

Recently I started to study AWS, and I'm feeling totally lost about the meaning of some things, how they work and what their contexts are for the application. For example Keys, Buckets, RNA ... Things like that. Could anyone tell me the me...
asked by 24.11.2018 / 00:59
0
answers

Make post request in python by sending a base64 image

Hello, I am studying python and I am trying to create a post in python that receives an image, saves it to the computer and sends it to an external service through a request.post. aux = imagem.read().encode("base64") files = {'file':aux} hea...
asked by 28.09.2018 / 23:39
1
answer

Angular - HTTP interceptor return the value of a promise

I have to apply a descriptografia on the body of the return of a request via Interceptor , however the decryption method is asynchronous and returns a promisse . Here's an excerpt from the class: intercept(req: HttpRe...
asked by 30.08.2018 / 19:22
0
answers

How to sum values from a request:

Example: request = requests.get('https://api.amountofsomething.com') quantidade = requisição.json()['amount'] This request returns the quantity, for example: {[{25}{120}{158}{0}{2}{10}]} I need to add values without patterns. I tr...
asked by 09.08.2018 / 05:06
1
answer

How to make a request and search for a string

I would like to know how to give a request and look for a string, for example: * www.site.com / index.php? id = '(SQL Error) (look for or error)
asked by 08.08.2018 / 23:01
0
answers

ServiceWorker save form

I'm currently handling the fetch events in my ServiceWorker as follows: self.addEventListener('fetch', event => { // For 'POST' method if ( event.request.method !== 'GET' && event.request.method !== 'HEAD' &&...
asked by 04.08.2018 / 06:10