cancel
Showing results for 
Search instead for 
Did you mean: 

Utility HTTP

MayankGoyal2
Level 8
Hi, With current version of Utility HTTP, we get response body. Is there a reusable VBO in BP to return back response headers and response code as well along with body?

------------------------------
Mayank Goyal
------------------------------
19 REPLIES 19

@ewilson - Thanks a lot for all your help as always, appreciate it. Can we have one flag data item and a code block in this VBO to handle  ​SSL error as well - https://www.codeproject.com/Tips/321313/Bypass-and-Restore-SSL-Certificate-Validation-in-V
or if you know a better way to avoid SSL error. 

In postman there is a direct option on UI - Enable SSL certificate verification which we can make it Yes/No
I want to have similar option in BP utility.

------------------------------
Mayank Goyal
------------------------------

@Mayank Goyal check out this VBO on the DX.

Cheers,


------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

@ewilson - I imported 3.1 vbo, however it has one error in code stage, please help to fix the same. ​

------------------------------
Mayank Goyal
------------------------------

@Mayank Goyal what error are you seeing?  ​

------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

@ewilson - Please see the below error -

15583.png
​​

------------------------------
Mayank Goyal
------------------------------

@Mayank Goyal - Hmm, I don't get that error. What version of BP did you say you're running?​

Cheers,

------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

I am using BP version 6.4 however i dont know how that will impact it because this is purely code based vbo?

kindly help with a fix.

------------------------------
Mayank Goyal
------------------------------

@Mayank Goyal - It can make a difference as there are occasional changes within Blue Prism that can impact the JIT compilation of code. With that said, the IsNothing() error you're seeing makes no sense as that's a standard method within VB.NET.

However, there is an alternative (and possibly better) approach. You can change that line of code from this:
If Not IsNothing(headers) Then​

to this

If Not headers Is Nothing Then

I'll push an update with this change too.

Cheers,

 ​

------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------

@ewilson - I checked the updated version 3.2, it now has 2 errors due to vbCrLf used in both code stages. The fix is quick we have to include Microsoft.VisualBasic in namespace imports. Kindly update and upload the same so that we can have final version error free on DX portal.
​​

------------------------------
Mayank Goyal
------------------------------

@Mayank Goyal,

Now you've set me on a mission to find out at what point the reference to Microsoft.VisualBasic was added as an implied reference. 🤦‍♂️

v3.3 is posted with the explicit reference.

Cheers,

------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------