Re: [fpc-pascal] Free Pascal 2.6.2 rc1

2012-11-23 Thread LacaK
Mark Morgan Lloyd wrote / napísal(a): Marco van de Voort wrote: Hello, We have placed the first release-candidate of the Free Pascal Compiler version 2.6.2 on our ftp-servers. You can help improve the upcoming 2.6.2 release by downloading and testing this release. If you want you can report

[fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread luciano de souza
Hello listers, Using Synapse, the developer has very good features to deal with the HTTP protocol. But imagine you want only to do a get in a URL and take a string back. I imagine it can be done with the standard units of Freepascal. Is it true? How could I do it with FPC 2.7.1? Best regards,

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread Michael Van Canneyt
On Fri, 23 Nov 2012, luciano de souza wrote: Hello listers, Using Synapse, the developer has very good features to deal with the HTTP protocol. But imagine you want only to do a get in a URL and take a string back. I imagine it can be done with the standard units of Freepascal. Is it true?

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread Luciano de Souza
Yes, when I ask for a simple way, I could not imagine something so simpler! Thank you. Your tip help me a lot. The success of your answer is so that I add a question: is there also a FPC native unit dealing with SMTP? Em 23-11-2012 14:15, Michael Van Canneyt escreveu: On Fri, 23 Nov 2012,

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread silvioprog
GREAT unit, I love Free Pascal! Two errors, with: program project1; {$mode objfpc}{$H+} uses fphttpclient; var S: string; begin with TFPHttpClient.Create(nil) do try S := Get(ParamStr(1)); finally Free; end; WriteLn('Got : ', S); end.

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread Leonardo M . Ramé
From: silvioprog silviop...@gmail.com To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Friday, November 23, 2012 2:38 PM Subject: Re: [fpc-pascal] A simple HTTP request with FPC standard units Done:

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread Michael Van Canneyt
On Fri, 23 Nov 2012, Leonardo M. Ramé wrote: From: silvioprog silviop...@gmail.com To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Friday, November 23, 2012 2:38 PM Subject: Re: [fpc-pascal] A simple HTTP request with FPC standard

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread Leonardo M . Ramé
- Original Message - From: Michael Van Canneyt mich...@freepascal.org To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Cc: Sent: Friday, November 23, 2012 5:07 PM Subject: Re: [fpc-pascal] A simple HTTP request with FPC standard units On Fri, 23 Nov 2012,

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread Michael Van Canneyt
On Fri, 23 Nov 2012, Leonardo M. Ramé wrote: You mean probably   s := TFPCustomHTTPClient.Get('http://a_site/a_page'); It could be done, but it will need to create an instance anyway. Although I suspect such a simple case is a minority. Michael.

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread luciano de souza
Among its hundreds of units, the Freepascal always keeps surprises for us. FPHTTPClient was a pleasant surprise. The talk has followed freely and perhaps my question has been skipped: is there Freepascal native routines to deal with SMTP protocol? In other words, is there a native way to send an

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread Paul Breneman
luciano de souza wrote: Among its hundreds of units, the Freepascal always keeps surprises for us. FPHTTPClient was a pleasant surprise. The talk has followed freely and perhaps my question has been skipped: is there Freepascal native routines to deal with SMTP protocol? In other words, is there

Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-23 Thread silvioprog
2012/11/23 Michael Van Canneyt mich...@freepascal.org On Fri, 23 Nov 2012, luciano de souza wrote: Hello listers, Using Synapse, the developer has very good features to deal with the HTTP protocol. But imagine you want only to do a get in a URL and take a string back. I imagine it can be