Hello, help with a problem.
use the code:
looked request header :
POST / api / write HTTP/1.1
Content-Type: application / x-www-form-urlencoded
Host: Tumblr
Content-Length: 107
Expect: 100-continue
Connection: Keep-Alive
Thanks.
use the code:
B4X:
Request.New1 ( "http://www.tumblr.com/api/write")
Request.Method = "POST"
Request.KeepAlive = True
Request.ContentType = "application / x-www-form-urlencoded"
stream.New1 (Request.GetStream, True)
name = "email = mail & password = pass"
stream.WriteBytes (stream.StringToBytes (name))
Response.New1
Request.GetAsyncResponse
POST / api / write HTTP/1.1
Content-Type: application / x-www-form-urlencoded
Host: Tumblr
Content-Length: 107
Expect: 100-continue
Connection: Keep-Alive
on that server is responsible:
417 Expectation Failed
The expectation given in the Expect request-header
field could not be met by this server.
The client sent
Expect: 100-continue
but we only allow the 100-continue expectation.
How to fix that does not send Expect?
417 Expectation Failed
The expectation given in the Expect request-header
field could not be met by this server.
The client sent
Expect: 100-continue
but we only allow the 100-continue expectation.
How to fix that does not send Expect?
Thanks.