Code |
---|
Connection = New HTTPConnection("api.biletinial.com",,,,,,New OpenSSLSecureConnection()); RequestHeaders = New Map(); RequestHeaders.Insert("Content-Type", "application/x-www-form-urlencoded"); Request = New HTTPRequest("/token/", RequestHeaders); Request.SetBodyFromString("username=makman@mallofistanbul.com.tr&password=MzQ2Nzg1NDY0NTY=&grant_type=password"); HTTPResponse = Connection.Post(Request); ResponseText = HTTPResponse.GetBodyAsString(); If HTTPResponse.StatusCode = 200 Then EndIf; |
How can i use this code? I try connection on postman or other http request test programs. It's working but On 1c platform not working. Please help me.
How can i post this data:
username=makman@mallofistanbul.com.tr
password=MzQ2Nzg1NDY0NTY=
grant_type=password