Re: [twsocket] Server Socket help request

2011-10-31 Thread Arno Garrels
Walter Bohlin wrote:
> Does anyone have an example of a socket server written in C++? I'm
> struggling to get it working and documentation is sparse.
> 
> Thanking you in advance!

Take a look at the ICSv7 cpp demos, there are basic server examples
available (ics\cpp\Internet\).  

-- 
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


[twsocket] Server Socket help request

2011-10-31 Thread Walter Bohlin
Does anyone have an example of a socket server written in C++? I'm 
struggling to get it working and documentation is sparse.


Thanking you in advance!

Walter

--
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] how to make browser upload a file

2011-10-31 Thread Wilfried Mestdagh
Hi,

I found out if I specify enctype="multipart/form-data" it upload the file.
But how do I get the file content in THttpSrv? It seems not to be with
ExtractURLEncodedValue.

Socketspy shows me that it upload:

-265001916915724
Content-Disposition: form-data; name="datafile"; filename="1.txt"
Content-Type: text/plain

This is the content of the file

-265001916915724--

-- 
mvg, Wilfried 

--
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] how to make browser upload a file

2011-10-31 Thread Wilfried Mestdagh
Hi,

I try to upload a file in THttpSrv, but in ExtractURLEncodedvalue, I only
have 'datafile' containing the filename. If I try with socketspy in between
the I do not see any upload of the file (only datafile=filename.ext). So I
think I'm missing something.

This is the generated HTML code to upload the file. How to instruct the
browser to really upload the file and not only his name?







-- 
mvg, Wilfried
http://www.mestdagh.biz
http://www.comfortsoftware.be
http://www.expertsoftware.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