N Nataly Member Feb 15, 2022 #1 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? Code: Copy Dim j As HttpJob j.Initialize("", Me) j.PostString(URL, "&id=3") ''get headers ? Thank you, Nataly
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? Code: Copy Dim j As HttpJob j.Initialize("", Me) j.PostString(URL, "&id=3") ''get headers ? Thank you, Nataly
MarcoRome Expert Licensed User Longtime User Feb 16, 2022 #2 Search Results www.b4x.com Click to expand... Upvote 0
mcqueccu Expert Licensed User Longtime User Feb 16, 2022 #4 j.GetRequest.SetHeader("Header Item", "Value") Example B4X: Copy j.GetRequest.SetContentType("application/json") j.GetRequest.SetHeader("user-agent",".........") j.GetRequest.SetHeader("Authorization", "API_KEY") Upvote 0
j.GetRequest.SetHeader("Header Item", "Value") Example B4X: Copy j.GetRequest.SetContentType("application/json") j.GetRequest.SetHeader("user-agent",".........") j.GetRequest.SetHeader("Authorization", "API_KEY")