Android Question How can i set HTTP 1.1 Request Header

SMOOTSARA

Active Member
Licensed User
Longtime User
Hello friends
I need to send a http 1.1 request to the host


B4X:
GET /messages/v3/messages?title=en&lid=1&cid=1&purity=2&order=2&page=1 HTTP/1.1
Content-Length: 0
Host: api.xxxxxx.com
Connection: Keep-Alive
Authorization: Basic XXQ3bnlFWkN3TDMXXGdVTnR3SlB3ODMwallHRlRXXm46RTR9XS8qUn02a2ZhNmXX
Accept-Encoding: gzip
 

MarcoRome

Expert
Licensed User
Longtime User
B4X:
j.Download($"https://api.xxxxx.com/messages/v3/messages?title=en&lid=1&cid=1&purity=2&order=2&page=1"$)
j.GetRequest.SetHeader("Authorization", "Basic " & Token)
j.GetRequest.SetHeader("Accept-Encoding","gzip")
Wait For (j) JobDone(j As HttpJob)
....
 
Upvote 1
Top