For this request, I am trying to set the entity, however when I do request.setEntity, it says required type HttpEntity, on upcasting it to HttpEntity as request.setEntity((HttpEntity) entity) it still gives me exception. Answer I was using “com.signalfx.shaded.apache.http.entity.StringEntity” instead of “import org.apache.http.entity.StringEntity” which was causing the issue.
Tag: http-post
How to extract data from POST request in azure functions java
I send form data in POST request from angular app to my azure functions who wrriten in java. the client side look like this: when Item recived to azure functions. the aim of functions is to send this item in push notifications via firebase to android app. the azure functions with HTTP trigger look like this: when I am running
Why my http post request with android volley throws error (localhost)?
I’m working on an android studio project and i’ve had some problems trying to make a post request with volley library. I’ve already tested my API with postman and all works fine, so the problem is from the client part. I’ve already added the internet permission in my android manifest: Here is my code, i’ve created a function named “login”
How do I print the content of httprequest request?
I’ve got a bug involving httprequest, which happens sometimes, so I’d like to log HttpGet and HttpPost request’s content when that happens. So, let’s say, I create HttpGet like this: This is the string representation that I’d like to get: With the post request, I’d also like to get the content string. What is the easiest way to do it
Posting image to wcf rest service from Android
I’m having a problem to post a image to my wcf rest service. I’m posting some parameters of which one of them is a base64 utf-8 encoded string (the image). My problem is that every time I post I get “bad request”. Here is the code It is something with the encoded string, but what? Answer I don’t see why