http-post

Cannot load webpage from Postman because of javax.faces.ViewState?

核能气质少年 提交于 2020-12-15 05:19:01
问题 I am trying to integrate a web application written by someone else with an API written by someone else. At the moment I am trying to test one of the webpages using Postman. When the webpage is loaded in a browser it works correctly. I have replicated all of the headers and body in Postman, however when I try to launch the webpage in Postman a HTTP 500 status code appears (internal server error). I think the issue is with: javax.faces.ViewState , which is a body key/value pair. I initially do

Object null in WebApi method after PostAsJsonAsync

寵の児 提交于 2020-12-14 06:54:45
问题 I am posting an object to a WebApi method. I'm using PostAsJsonAsync to do this. public async Task<HttpResponseMessage> PostAsync(string token, ServiceCall call) { var client = new HttpClient(); client.SetBearerToken(token); var response = await client.PostAsJsonAsync(Uri + "id/nestedcall", call); return response; } The object call that I'm passing is not null when I post it. [HttpPost] [Route("id/nestedcall")] public async Task<IHttpActionResult> NestedCall([FromBody]ServiceCall call) { //

Object null in WebApi method after PostAsJsonAsync

◇◆丶佛笑我妖孽 提交于 2020-12-14 06:52:04
问题 I am posting an object to a WebApi method. I'm using PostAsJsonAsync to do this. public async Task<HttpResponseMessage> PostAsync(string token, ServiceCall call) { var client = new HttpClient(); client.SetBearerToken(token); var response = await client.PostAsJsonAsync(Uri + "id/nestedcall", call); return response; } The object call that I'm passing is not null when I post it. [HttpPost] [Route("id/nestedcall")] public async Task<IHttpActionResult> NestedCall([FromBody]ServiceCall call) { //

POST request being received as GET request on Heroku

天涯浪子 提交于 2020-08-08 18:56:11
问题 Why aren't the POST params that are being set by a html form on another domain being received by my PHP script being hosted by Heroku? Context: I've got a simple html form which is sending some user data to a PHP script I've put on Heroku. The form is on a different site/domain, but as I understand the Same Origin Policy shouldn't be breaking the request. In fact, I've tested sending the request from the form to my local machine and the script worked fine. The request fires perfectly normally

POST request being received as GET request on Heroku

喜你入骨 提交于 2020-08-08 18:55:11
问题 Why aren't the POST params that are being set by a html form on another domain being received by my PHP script being hosted by Heroku? Context: I've got a simple html form which is sending some user data to a PHP script I've put on Heroku. The form is on a different site/domain, but as I understand the Same Origin Policy shouldn't be breaking the request. In fact, I've tested sending the request from the form to my local machine and the script worked fine. The request fires perfectly normally

Why does a request via Python `requests` takes almost seven times longer than in Postman?

馋奶兔 提交于 2020-07-16 02:11:27
问题 I am currently doing a HTTP Post request to a server in Python 2.7 with requests.post() which takes around 700ms. There is also absolutely no proxy server which could cause delays but still I am bypassing any proxies because it seems to be an issue of that library. Nevertheless I was curious about that time because in my opinion it takes very long for an answer with about 230 characters. That is why I tried the same request in Postman. The result was that the request in Postman took less than

Why does a request via Python `requests` takes almost seven times longer than in Postman?

余生颓废 提交于 2020-07-16 02:10:35
问题 I am currently doing a HTTP Post request to a server in Python 2.7 with requests.post() which takes around 700ms. There is also absolutely no proxy server which could cause delays but still I am bypassing any proxies because it seems to be an issue of that library. Nevertheless I was curious about that time because in my opinion it takes very long for an answer with about 230 characters. That is why I tried the same request in Postman. The result was that the request in Postman took less than

Why does a request via Python `requests` takes almost seven times longer than in Postman?

我们两清 提交于 2020-07-16 02:10:29
问题 I am currently doing a HTTP Post request to a server in Python 2.7 with requests.post() which takes around 700ms. There is also absolutely no proxy server which could cause delays but still I am bypassing any proxies because it seems to be an issue of that library. Nevertheless I was curious about that time because in my opinion it takes very long for an answer with about 230 characters. That is why I tried the same request in Postman. The result was that the request in Postman took less than