[RESOLVEDfphttpclient lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- berghem · 2021-03-01 19:54 I had copy this code for send a json in a server web, https://wiki.freepascal.org/fphttpclient#Posting_JSON but when compiled I have this error "unit1.pas(44,27) Error: Identifier not found "TRawByteStringStream"" but this class uses Classes and I have in my uses.... where is the problem? I use Lazarus 2.0.6 Code: [Select]var     Client: TFPHttpClient;     Response : TStringStream;     Params : string = '{"title": "Some New Note","content": "This is awesome stuff in the new note"}'; begin     Client := TFPHttpClient.Create(nil);     Client.AddHeader('User-Agent','Mozilla/5.0 (compatible; fpweb)');     Client.AddHeader('Content-Type','application/json; charset=UTF-8');     Client.AddHeader('Accept', 'application/json');     Client.AllowRedirect := true;     //Client.UserName:=USER;     //Client.Password:=PW;     client.RequestBody := TRawByteStringStream.Create(Params);     Response := TStringStream.Create('');     try         try             client.Post('TheURL', Response);             writeln('Response Code is ' + inttostr(Client.ResponseStatusCode));   // better be 200         except on E:Exception do                 writeln('Something bad happened : ' + E.Message);         end;     finally         Client.RequestBody.Free;         Client.Free;         Response.Free;     end; ---------------------------------------------------------------------- dseligo · 2021-03-02 07:20 I tried your code and it compiles (I use Lazarus 2.0.10). Check if you have TRawByteStringStream declaration in "lazarus\fpc\3.2.0\source\rtl\objpas\classes\classesh.inc" (change 3.2.0 according to FPC version you have). ---------------------------------------------------------------------- Leledumbo · 2021-03-02 08:08 TRawByteStringStream was implemented on 2020-01-03. Quoter43845 | ondrej | 2020-01-03 03:02:27 +0700 (Jum, 03 Jan 2020) | 1 line classes: introduce TRawByteStringStream Lazarus 2.0.6 comes with FPC 3.0.4 which was released on 2017-11-28. ---------------------------------------------------------------------- PascalDragon · 2021-03-02 08:13 TRawByteStringStream requires 3.2.0 or newer. You might be able to simply use TStringStream instead. ---------------------------------------------------------------------- berghem · 2021-03-02 20:14 Resolved with StringStream. Thanks