[twsocket] HTTP server component with WebDav support

2012-02-03 Thread Tobias Rapp
Hi!

I would like to extend my existing ICS-based HTTP server to allow upload
and removal of files on the server. From reading the HTTP specs at [1] it
seems that the natural commands for these actions would be PUT [2] and
DELETE [3].

Unfortunately the THttpServer/THttpConnection components do not support
these actions yet as they seem only common for HTTP servers supporting
WebDAV (at least you need to enable WebDAV in apache in order to support
these HTTP requests).

I have seen that I can set an OnUnknownRequestMethod event handler in
current versions of ICS but am unsure how to fetch the request body
transmitted by the client for PUT requests.

Has anybody done such a WebDAV-like extension of the ICS components yet? 

Regards,
Tobias

Links:
[1] http://tools.ietf.org/html/rfc2616
[2] http://tools.ietf.org/html/rfc2616#section-9.6
[3] http://tools.ietf.org/html/rfc2616#section-9.7

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Package problems

2012-02-03 Thread Stefan Paege
Hi Arno, Francois,

I did download ICS5 from OverByte.be yesterday.
Then copied it into my Delphi 5 installation and compiled the package.
I'm not 100% sure if I had an older version of ICS installed before. So
there might be leftovers from an ancient installation.
I will try to clean up and reinstall.


  Stefan Paege

elektronik-labor CARLS GmbH  Co. KG
Bergweg 6
48485 Neuenkirchen
GERMANY
Telefon: +49 (0) 5973 / 9497-23
Telefax: +49 (0) 5973 / 9497-19
E-Mail: pa...@el-carls.de
Internet: www.el-carls.de

Kommanditgesellschaft: Sitz Neuenkirchen, Registergericht Steinfurt HRA 3310

Persönlich haftende Gesellschafterin: elektronik-labor CARLS,
Beteiligungsgesellschaft mbH, Sitz Neuenkirchen, Registergericht Steinfurt
HRB 4175

Geschäftsführer: Irmgard Carls, Joachim Schulte, Helmut Schiffelholz


 -Ursprüngliche Nachricht-
 Von: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org]
 Im Auftrag von Arno Garrels
 Gesendet: Donnerstag, 2. Februar 2012 20:40
 An: ICS support mailing
 Betreff: Re: [twsocket] Package problems
 
 Stefan Paege wrote:
  Unit MD5.pas is opened in the
  editor. It has only one line:
  Bomb('This file has been renamed from MD5 to IcsMD5. Update your
  uses clause !');
 
 This file doesn't exist in current ICSv5, where did the compiler find
 it?
 
 --
 Arno Garrels
 --
 To unsubscribe or change your settings for TWSocket mailing list please
 goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Package problems

2012-02-03 Thread Stefan Paege
OK, have it working now.

Thanks guys.

  Stefan Paege



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] udp server and network configuration changes

2012-02-03 Thread Emanuele Bizzarri
Hi,
I've an udp socket listening on ip:port.
If I make some network configuration changes, no socket error will be triggered.
Is it normal?
I've tested following cases:
1. switching off wifi: netstat tells that the socket is listening yet. And it 
will continue receive data (I've tried from a client on the same pc). If I stop 
and then restart listening, the ip is available
2. changing ip from control panel: netstat tells that the socket is listening 
yet. But data transfer is interrupted. If I reconfigure the previous ip, data 
transfer begins again.
Is this the  windows behaviour? 
There is a way to recognize networks changes like these? 
I haven't tried with a listening tcp socket yet. Will it be able to recognize 
network configuration changes? If yes, I could use it in combination with my 
udp socket.

Thank you in advance

Emanuele
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] HTTP server component with WebDav support

2012-02-03 Thread Arno Garrels
Tobias Rapp wrote:
 Hi!
 
 I would like to extend my existing ICS-based HTTP server to allow
 upload and removal of files on the server. From reading the HTTP
 specs at [1] it seems that the natural commands for these actions
 would be PUT [2] and DELETE [3].
 
 Unfortunately the THttpServer/THttpConnection components do not
 support these actions yet as they seem only common for HTTP servers
 supporting WebDAV (at least you need to enable WebDAV in apache in
 order to support these HTTP requests).
 
 I have seen that I can set an OnUnknownRequestMethod event handler
 in current versions of ICS but am unsure how to fetch the request body
 transmitted by the client for PUT requests.

This is untested:
http://lists.elists.org/pipermail/twsocket/2012-January/044464.html

-- 
Arno Garrels
 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] udp server and network configuration changes

2012-02-03 Thread François Piette
 There is a way to recognize networks changes like these? 

Have a look at IP Helper API:
http://msdn.microsoft.com/en-us/library/aa366329(VS.85).aspx


--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be




--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Package problems

2012-02-03 Thread François Piette
 OK, have it working now.

And the problem was

It is always better to report the solution you found for a problem you
talked in the list. This way, the next guy searching for the same problem
will also find the solution !

Thanks.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be




--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be