Re: [fpc-devel] HTTP client/server components committed.
On 05/17/2011 03:28 PM, michael.vancann...@wisa.be wrote: There are example projects (see my initial mail). Sweet. Thanks. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] HTTP client/server components committed.
I've committed simple HTTP server (threaded or not) and HTTP Client components to FCL-Web. They work using the fcl-net ssockets unit. (for which a fix has been committed as well). Both use blocking sockets. Great news ! It should be now possible to develop a WST web service http server and/or client out of the box :-) -- Inoussa O. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] HTTP client/server components committed.
On Tue, 17 May 2011, Inoussa OUEDRAOGO wrote: I've committed simple HTTP server (threaded or not) and HTTP Client components to FCL-Web. They work using the fcl-net ssockets unit. (for which a fix has been committed as well). Both use blocking sockets. Great news ! It should be now possible to develop a WST web service http server and/or client out of the box :-) Exactly, I had thought about that as well :-) Will you look at it, or would you like me to do it ? Michael. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] HTTP client/server components committed.
On 05/17/2011 01:10 PM, Michael Van Canneyt wrote: Will you look at it, or would you like me to do it ? It would be just great if an example project would come with the components. Thanks a lot ! -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] HTTP client/server components committed.
2011/5/17 Michael Van Canneyt mich...@freepascal.org On Tue, 17 May 2011, Inoussa OUEDRAOGO wrote: I've committed simple HTTP server (threaded or not) and HTTP Client components to FCL-Web. They work using the fcl-net ssockets unit. (for which a fix has been committed as well). Both use blocking sockets. Great news ! It should be now possible to develop a WST web service http server and/or client out of the box :-) Exactly, I had thought about that as well :-) Will you look at it, or would you like me to do it ? I would like you to look at it :-) as I am busy right now with cpstrnew. -- Inoussa O. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] HTTP client/server components committed.
On 05/17/2011 01:19 PM, Inoussa OUEDRAOGO wrote: I am busy right now with cpstrnew. Yeah ! Great ! Can you say anything about the state of same ? Thanks a lot -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] HTTP client/server components committed.
2011/5/17 Michael Schnell mschn...@lumino.de On 05/17/2011 01:19 PM, Inoussa OUEDRAOGO wrote: I am busy right now with cpstrnew. Yeah ! Great ! Can you say anything about the state of same ? It is getting better. At least on WinXP/32 I can the fpc test suite, there are some failed tests, but not that much. Check it out and test it by yourself. Tests (preferably validated with delphi) are welcome. -- Inoussa O. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] HTTP client/server components committed.
On 05/17/2011 02:13 PM, Inoussa OUEDRAOGO wrote: It is getting better. At least on WinXP/32 I can the fpc test suite, there are some failed tests, but not that much. Check it out and test it by yourself. Tests (preferably validated with delphi) are welcome. Sounds good. I frequently do check in the svn tree for it. But this is an FPC not a Lazarus thingy. I'm not really sure how to install and use an independent frpc. But maybe I'll try tomorrow... -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] HTTP client/server components committed.
On Tue, 17 May 2011, Michael Schnell wrote: On 05/17/2011 01:10 PM, Michael Van Canneyt wrote: Will you look at it, or would you like me to do it ? It would be just great if an example project would come with the components. There are example projects (see my initial mail). Michael. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] HTTP client/server components committed.
On Tue, 17 May 2011, Inoussa OUEDRAOGO wrote: 2011/5/17 Michael Van Canneyt mich...@freepascal.org On Tue, 17 May 2011, Inoussa OUEDRAOGO wrote: I've committed simple HTTP server (threaded or not) and HTTP Client components to FCL-Web. They work using the fcl-net ssockets unit. (for which a fix has been committed as well). Both use blocking sockets. Great news ! It should be now possible to develop a WST web service http server and/or client out of the box :-) Exactly, I had thought about that as well :-) Will you look at it, or would you like me to do it ? I would like you to look at it :-) as I am busy right now with cpstrnew. OK. Michael. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] HTTP client/server components committed.
Hi, In the light of recent fppkg and fcl-web discussions: I've committed simple HTTP server (threaded or not) and HTTP Client components to FCL-Web. They work using the fcl-net ssockets unit. (for which a fix has been committed as well). Both use blocking sockets. The server component is integrated in the rest of fcl-web, the client is rather stand-alone. Both are designed to be easily extensible. There are examples of how to use both. The server example for instance allows files to be served and will properly report a 404 when a file is not found. To do this, I committed a fpmimetypes unit to fcl-base, so the server can correctly determine the mime type of a file. It can read the contents of a mime.types file as found on unix. if someone knows where this file can be found (or related information) on a Windows OS, please let me know. This is an initial implementation. Known to-dos: Client: * Maybe add proxy support ? * Easy access methods for POST/DELETE etc. commands. (currently only Get exists as a method, the rest can easily be done with HTTPMethod) Server: * Create a TWebHandler and THTTPWebApplication for use as a Lazarus project. Comments and suggestions welcome. Please report bugs in the bugtracker. Michael. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] HTTP client/server components committed.
Hi, it's greate fpc has simple http client now ;) On 2011-05-15 19:13, Michael Van Canneyt wrote: if someone knows where this file can be found (or related information) on a Windows OS, please let me know. You can look at components\turbopower_ipro\iputils.pas - it has handling for mime types. MSWindows ifdef has a good code for Windows OS (line 2751, function GetLocalContent(const TheFileName: string): string;). Regards, Zilvinas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] HTTP client/server components committed.
On Sun, 15 May 2011, Žilvinas Ledas wrote: Hi, it's greate fpc has simple http client now ;) On 2011-05-15 19:13, Michael Van Canneyt wrote: if someone knows where this file can be found (or related information) on a Windows OS, please let me know. You can look at components\turbopower_ipro\iputils.pas - it has handling for mime types. MSWindows ifdef has a good code for Windows OS (line 2751, function GetLocalContent(const TheFileName: string): string;). Thank you, that is good advice; I will have a look at it :-) Michael.___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel