Questions tagged as 'http-request'

0
answers

How to delete bank record by parameter id by http rest?

I'm trying to delete by passing this id parameter, it's giving not found.Obs: All other methods like get post and update are working, I'm sure the error is in uri, ie I'm not passing the parameter correctly. link I've tried this other way but...
asked by 26.05.2018 / 08:39
0
answers

Set HTTP EndPoint to receive POST from an API

I have an Angular app and need to get Webhooks from the API Moip Payments and I need to create an EndPoint to receive POST when an event occurs. How do I create an EndPoint so that Moip can send these events that occur to my applicati...
asked by 17.05.2018 / 18:04
0
answers

Error while doing HTTP request android

I'm implementing a native android app that requests with a WS. When trying to make the connection in method connect() of HttpURLConnection I'm getting an error that does not fall into catch to be validated. Doing some res...
asked by 25.04.2018 / 04:04
0
answers

Help with post request in java

Hello. I'm trying to call a php webservice via post using java. the code and the following: public void post(String json) { try { CloseableHttpClient client = HttpClients.createDefault(); HttpPost httpPost =...
asked by 17.04.2018 / 19:16
0
answers

How to handle error code from an http request

Below is a method that I use to do some validation, but so far I have not been able to retrieve the request response code. I need to say that when the server response code is 403 show that the user is not allowed to access. @Target({TYPE}) @Re...
asked by 12.04.2018 / 19:27
1
answer

Http Request returns blank page

I'm trying to perform Http request in php which should open a web page so that I would look for a code that would come in the URL after authorizing the API. But when I run the page it goes blank. I tried cURL and the result really was. <?ph...
asked by 29.03.2018 / 19:17
0
answers

Validating a PostBack

What does this mean? How to do it? "You should validate the postback source, that is, if it was actually sent by Pay.me. To do this, you must calculate the HMAC-SHA1 of the body of the HTTP request and compare it with the X-Hub-Signature...
asked by 11.03.2018 / 22:52
1
answer

HTTP verification (200) in PHP

I did my verification like this, except that in mine it gave an error and in other systems of verification did not give. I wonder where did I go wrong? $host = 'IP do HOST'; $conectado = @fsockopen($host, 80); if (is_resource($conectado))...
asked by 26.02.2018 / 19:54
0
answers

HTTP request giving error in Chrome and works on Edge and Firefox

I have a problem when making an HTTP request with Angular 4, in the Edge and Firefox works without any problem, but in Chrome gives error in the Post, Options passes quietly but the Post does not pass, in the image it is easier to see the error...
asked by 24.01.2018 / 12:22
1
answer

req.body is coming empty when calling api in postman and application

I'm trying to use an api in nodejs but I can not pass the parameters the req.body is empty and I can not identify the problem var express = require('express') var app = express() var bodyParser = require('body-parser') var core_use = requir...
asked by 20.10.2017 / 00:50