[fpc-pascal] A simple HTTP request with FPC standard units
Luciano de Souza
luchyanus at gmail.com
Sat Nov 24 17:04:20 CET 2012
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 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 e-mail with Freepascal?
>
> There are no FPC-provided native freepascal routines for this, but I
> see Paul Breneman has provided an alternative.
>
> Contributions are welcome. It is mostly lack of time that keeps us
> from implementing these things.
> As far as I know, SMTP is a fairly simple protocol, probably it is not
> too hard to implement.
>
> Michael.
>
>
>>
>>
>> 2012/11/23, Michael Van Canneyt <michael at freepascal.org>:
>>>
>>>
>>> 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.
>>>>> _______________________________________________
>>>>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>>>>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>>>
>>>>
>>>> Yes, I said this because the original poster wrote he needed the very
>>>> little code to accomplish this.
>>>
>>> I implemented the class methods for all forms of Get/Post/Formpost,
>>> so now
>>> you can do:
>>>
>>> s := TFPCustomHTTPClient.SimpleGet('http://a_site/a_page');
>>>
>>> You can't get more simple than that.
>>>
>>> Michael.
>>
>>
>> --
>> Luciano de Souza
>> _______________________________________________
>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20121124/e8b7ec4b/attachment.html>
More information about the fpc-pascal
mailing list