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

2012-11-24 Thread Michael Van Canneyt
On Fri, 23 Nov 2012, 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?

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

2012-11-24 Thread Luciano de Souza
Unfortunately, I don't have enough knowledlge even to start a task like that. But observing the firm journey of Freepascal, I am sure we will have it soon. Em 24-11-2012 06:52, Michael Van Canneyt escreveu: On Fri, 23 Nov 2012, luciano de souza wrote: Among its hundreds of units, the

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

2012-11-24 Thread silvioprog
2012/11/24 Luciano de Souza luchya...@gmail.com ** Unfortunately, I don't have enough knowledlge even to start a task like that. But observing the firm journey of Freepascal, I am sure we will have it soon. Em 24-11-2012 06:52, Michael Van Canneyt escreveu: On Fri, 23 Nov 2012, luciano de

[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: http://bugs.freepascal.org/view.php

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