25-06-2018, Saat: 08:19
Arkadaşlar merhaba Rest servise post işlemi yaparken hata alıyorum "HTTP/1.1 500" hatası alıyorum. Aynı post işlemi başka bir platformdan geldiğinde HTTP/1.1 ben post ettiğimde HTTP/1.0 olarak geliyor. Nerde yanlış yapıyor olabilirim ?
Delphi kodum
Post işlemi olması gereken
Ben post ettiğimde
Delphi kodum
RBody := TStringstream.Create(sorgu); IdHTTP.Request.Accept := 'application/json'; IdHTTP.Request.ContentType := 'application/json'; IdHTTP.Request.ContentLength:=Length( UTF8Encode(sorgu)); IdHTTP.Request.Host:=sunucu+':'+port; IdHTTP.Request.CustomHeaders.Add('Authorization: Bearer '+accestoken); IdHTTP.Request.CustomHeaders.Add('Expect: 100-continue'); IdHTTp.ProtocolVersion:=pv1_1; jstr :=IdHTTP.Request.ToString; jstr := IdHTTP.post('http://'+sunucu+':'+port+'/api/v1/quickProductionSlips' ,RBody); memo1.Text:=jstr; RBody.Free; IdHTTP.Free;
Post işlemi olması gereken
Ben post ettiğimde