To send the header to the server in Kathleen language with Retrofit library, I use the following form
But the header is not sent
@POST("testPost.php")
fun postNews(@Query("txt") txt:String) : Single<List<News>>
To send the header to the server in Kathleen language with Retrofit library, I use the following form
But the header is not sent
@POST("testPost.php")
fun postNews(@Query("txt") txt:String) : Single<List<News>>
2
Answers
The example you shared is not attaching any headers to the request. Check out the "Header Manipulation" chapter of Retrofit’s documentation page to learn how to add headers.
You Can try this :