(SOLVED) synapse HTTPMethod question lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- xinyiman · 2017-01-21 18:47 Hello guys, I have this code. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i function RecuperaHtml(Url: string): string;var http : THTTPSend;    page : TStringList;    i : longint;    risultato: string;begin  risultato:='';  http:=THTTPSend.Create;  page:=TStringList.Create;  try      if not http.HTTPMethod('GET',Url) then        begin           RecuperaHtml:='';             exit;        end      else        begin          page.LoadFromStream(http.Document);          for i:=0 to page.Count-1 do              risultato:=risultato + page[i];      end;        http.Clear;        page.Clear;  finally    http.Free;    page.Free;  end;  RecuperaHtml:=risultato;end;  I have to send a request to a php page, the URL that is sending the following Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i http://loca lhost:8888/lazdental_integration/lazdental_integration.php?richiesta=i nsert_or_update_anagrafica_paziente&id_lazdental=8&cognome=Pippo 1&nome=De Pippis&indirizzo=Via Topolinia&citta=Roma&cap=001xx&provinci a=RM&luogo_nascita=Napoli&coniuge=-&professione=- &telefono_abitazione=&telefono_lavoro=&cellulare=&fax=&email=&cod_fisc ale=&p_iva=&intestazione=&ts=0&contabilita=0&eliminato=399631&data_nas cita=1998-12- 24&titolo=Sig.&civico=1&frazione=ciao&stato=ITALIA&rischio=150776&dece duto=1 If I plug it into the browser it works fine if I send it with synapse instead of up to the first space and then ignores the rest. How do I make the encoding of the string so that everything works? ---------------------------------------------------------------------- rvk · 2017-01-21 19:35 You should use EncodeURL() in the unit synacode. http://synapse.ararat.cz/doc/help/synacode.html#EncodeURL It should replace the spaces to %20 and all other critical characters to their equivalent. ---------------------------------------------------------------------- xinyiman · 2017-01-22 09:32 Thanks you very much