Showing results for 
Search instead for 
Did you mean: 

HTTP utility usage

Not applicable
Hi I am trying to use HTTP Utility, and the Post action there. There seems to be difficulties to get the Headers and/or Post Data parameters correct. I have tried several Header collections but I always get BP error "Internal: Could not execute code stage because exception thrown by code stage: The remote server returned an error: (400) Bad Request.". Actually this error 400 Bad Request does not come from the remote server, but the Virtual Worker tcpip stack fails to even send the request due to the error. This was verified from tracing the network traffic, the http request is not sent. Anyway, there is something wrong with forming the http post network packet. Does anyone have detailed guidance or samples on how to set the parameters for the Post action. Kind regards, Toni  

Level 5
You can't get a 400 response unless you send something to the server. The webserver or application behind it is responding with the 400, most likely because your request is malformed according to it. The HTTP utility that ships with Blue Prism is barebones and does not support setting of headers, cookies and a few other values. You are far better off implementing your own.

Not applicable
Thanks David for your insight. I was also thinking that the error must come from the http server, but the network trace shows other way around, which is a bit strange. Anyway, if someone has any examples on how to use the utility, please share. Or if there is some other solutions that has been built. We have to take a look if this could be implemented by a developer.

Level 2
Hello folks:  I am new to BP and wondered if you can tell me how to make a http call from a process in BP. There are no other interaction other than the http call runs a process on another server. The http call looks like:  http://qvserver:8080/ibi_apps/WFServlet?IBIF_wfdescribe=XMLRUN&IBIF_ex=find_doctor&Logon=aziz   Appreciate any help. Thank you Aziz

Level 2
Hi I am also dealing with the same kind of issues: I'm trying to make a REST API call to Microsoft Azure Cognitive Services OCR with the utility objects but haven't found a way to do it successfully by using HTTP Request action. The service responds an error message: { ""statusCode"": 401, ""message"": ""Access denied due to missing subscription key. Make sure to include subscription key when making requests to an API."" } The POST clearly works since the service responds but the headers and body seem to be somehow in a wrong form. The request should look like this:POST =t/f HTTP/1.1 Host: Ocp-Apim-Subscription-Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Content-Type: application/json {""url"":""""} Method, Address URL and Content Type parameters are clear but I can't make heads or tails with the rest. Can somebody tell how to use the ""headers"" and ""body"" input parameters correctly? Or give an example of an alternative solution? Help would be greatly appreciated. Thanks! -Arttu