Argonc Member Licensed User Longtime User Oct 18, 2018 #1 How to do n B4A: curl -X POST -H "Content-Type: application/text" -d "you man" http://ec2-34-244-221-70.eu-west-1.compute.amazonaws.com:5000/ ? I try j.PostString ("http://ec2-34-244-221-70.eu-west-1.compute.amazonaws.com:5000/", "you man") but it needs a header. so I try with header j.Head ("Content-Type: application/text") But it does not work Any idea please?
How to do n B4A: curl -X POST -H "Content-Type: application/text" -d "you man" http://ec2-34-244-221-70.eu-west-1.compute.amazonaws.com:5000/ ? I try j.PostString ("http://ec2-34-244-221-70.eu-west-1.compute.amazonaws.com:5000/", "you man") but it needs a header. so I try with header j.Head ("Content-Type: application/text") But it does not work Any idea please?
Erel B4X founder Staff member Licensed User Longtime User Oct 18, 2018 #2 Read this carefully: https://www.b4x.com/android/forum/threads/set-http-request-header-with-okhttputils2.39413/ Upvote 0
Read this carefully: https://www.b4x.com/android/forum/threads/set-http-request-header-with-okhttputils2.39413/