Dim job As HttpJob
job.Initialize("Profile",Me)
job.Download("https://url....") ' Download, PosString, ect.
job.GetRequest.SetHeader("Authorization","Bearer "&access_token) 'Set the header AFTER the Download/Postfile
wait for (job) JobDone(j As HttpJob)
If j.Success Then
Log(j.GetString)
'Dim OutStream As OutputStream = File.OpenOutput(File.DirRootExternal, "Result.txt", False)
'File.Copy2(job.GetInputStream,OutStream) ' save the file
'OutStream.Close
Else
Log("JobError: "&job.ErrorMessage)
End If
j.Release
End Sub