[twsocket] CG2009 installation
I downloaded alpha version 7 from the website but seem to be oblivious on how to properly install the components on C++ Builder 2009 ? At first download the latest source code, alpha version 7 is buggy: http://wiki.overbyte.be/wiki/index.php/FAQ The readme does explain it for Delphi, but the mentioned files The readme is updated partly as well, should be an easy task. I initially downloaded from the website, using the most obvious link on the page ( http://www.overbyte.be/frame_index.html?redirTo=/products/ics.html ), but that turns out to be a very old version indeed. Via this link : javascript:top.StartDownload('eng', 'arch/OverbyteIcsV7_Alpha1.zip'); The help file makes no mention of Builder 2009. Meanwhile I downloaded the latest version via SVN and that text file does INDEED mention how to install under Builder. I will try asap ! How is the latest and greatest (HEAD) version doing lately ? Still buggy as mentioned ? Also, supposing I can install and use the component correctly. What do I best do when source files have been updated ? I mean, how do I make sure that the installed component uses the newer source ? Just rebuild, or also uninstall and install the components again ? Is the build source stored in a lib file ? And where is this lib file located then ? -- 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] THttpCli POST issue with v7 Commit 317
I just converted a piece of code to CB2009 (coming from BCB5), not originally written by myself, so it's a bit searching what is what, but I believe I run into a component issue. Meanwhile I created the same app in BCB5 and there is works OK, using the same code. I used HEAD version v7, checked out yesterday evening. Can somebody confirm, possibly fix if it's an issue ? The Problem: On the receiving end (webpage) the the POST variable doesn't arrive intact. Only the first letter. In this example case only t arrives (so t = test instead of test = test As suggested, the value arrives intact (in this case test) The essence I believe is the following {code} String PostData = test=test ; THttpCli *HttpCli; TMemoryStream *DataOut=NULL; DataOut=new TMemoryStream; #ifdef _DELPHI_STRING_UNICODE DataOut-Write(PostData[1], PostData.Length()*2); // CB2009 #else DataOut-Write(PostData[1], PostData.Length()); // BCB 5 #endif DataOut-Seek(0,soFromBeginning); HttpCli-SendStream=DataOut; try { HttpCli-Post(); DataSuccessFullyDownloaded=true; } __except (TRUE) { RawDataStringList-Add(ERROR_CODE=+IntToStr(HttpCli-StatusCode)); RawDataStringList-Add(ERROR_MESSAGE=+HttpCli-ReasonPhrase); } delete DataOut; DataOut=NULL; } {/code} Any ideas ? Can you repeat ? -- 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] THttpCli POST issue with v7 Commit 317
Peter Van Hove wrote: Can somebody confirm, possibly fix if it's an issue ? It's no bug. The component user is responsible to format posted data properly. The Problem: On the receiving end (webpage) the the POST variable doesn't arrive intact. Only the first letter. In this example case only t arrives (so t = test instead of test = test As suggested, the value arrives intact (in this case test) The essence I believe is the following {code} String PostData = test=test ; THttpCli *HttpCli; TMemoryStream *DataOut=NULL; DataOut=new TMemoryStream; #ifdef _DELPHI_STRING_UNICODE DataOut-Write(PostData[1], PostData.Length()*2); // CB2009 Most likely you have to convert the Unicode string to Ansi or UTF-8 first. -- 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