B4J Question how to send http header with colon

mcqueccu

Well-Known Member
Licensed User
Longtime User
I am trying to access an API that has some header items starting with colon, and I wonder if someone has encountered it before, and how the person treated it.

I tried both the colon and without the colon and I get Access denied, I want to be sure of the best way to send this header. Thank you

B4X:
ok.GetRequest.SetHeader(":authority","")
    ok.GetRequest.SetHeader(":method","")
    ok.GetRequest.SetHeader(":path","")
    ok.GetRequest.SetHeader(":scheme","")
 
Solution
You have seen these headers in chrome development tools, right? I don't think that you are expected to add them.

The problem is probably somewhere else.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…