Android Question HttpJob headers

Nataly

Member
Hello, I have searched the forum but haven't found anything related. I would like to set specific payload encoding. what is the default encoding used when there is a payload?
Also, how can I get headers?

httpJob:
Dim j As HttpJob
    j.Initialize("", Me)
    j.PostString(URL, "&id=3")
    ''get headers ?

Thank you,
Nataly
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
j.GetRequest.SetHeader("Header Item", "Value")

Example
B4X:
j.GetRequest.SetContentType("application/json")
j.GetRequest.SetHeader("user-agent",".........")
j.GetRequest.SetHeader("Authorization", "API_KEY")
 
Upvote 0

Similar Threads

Top