B4J Question Webservice API Curl ?

sdleidel

Active Member
Licensed User
Longtime User
And a second question...
PUT (update)
DELETE (delete)
in Curl... How i can make it in B4j/B4i

I found a Bug in B4i !

Thats on B4j:
B4X:
    job1.Initialize("MyToken", Me)
    job1.PostString("http://api.duundichwir.de/v1/user/login", "username=demo&password=test")
    job1.GetRequest.SetHeader("Content-Type", "application/json")
    job1.GetRequest.SetHeader("authorization:", "apiKey=N5691379310506780477")
Thats OK...

But in B4i
you must remove the Line
job1.GetRequest.SetHeader("Content-Type", "application/json")
because B4i send wrong Data to the "Server"
 
Upvote 0
Top