Re: [twsocket] Posting

2013-01-06 Thread Stewart Obert
http://www.madetocolor.com/ Phone: (888) 901 - 7977 Email Addresses:  acmpsoluti...@yahoo.com Paypal: c...@myriad-industries.com From: Stewart Obert To: "twsocket@elists.org" Sent: Saturday, January 5, 2013 11:53 PM Subject: [twsocket] Posting Hi, I was recently

[twsocket] Posting

2013-01-05 Thread Stewart Obert
Hi, I was recently looking at ICS and considering it as a replacement for Indy for an application which works as an interface for a web application. I wanted to give it a quick try and see how it handles performing a simple login so I put this together using the code from the OverbyteIcsHttpPos

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-21 Thread Irfan Mulic
Hi, Thanks for your help, but still I am not getting the same results when I do post to php script. This is PHP script > echo "Note = ". $_POST['note']; > > if($_POST['action'] == 'i') > { > /* > * This code will add new notes to the database > */ > $sql = "INSERT INTO app_notes VALUES

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Arno Garrels
Irfan Mulic wrote: > Yes it is Tnt Memo. I am using widestring from Tnt, I was thinking > that Tnt is in utf-8? > > Anywhay if I use urlencode on the character from Tnt Memo I am > getting '?' as result. That's easy to explain. UrlEncode takes a AnsiString, memoNote.Text is of type WideString. A

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
Please advice me how to solve this issue correctly, for UI I don't have anything except Tnt components in Delphi 7? What is correct approach to this, I am preaty new with this unicode stuff but I have to acomplish this task... Thank you very much. On Thu, Nov 20, 2008 at 12:46 PM, Irfan Mulic <[EMA

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
Yes it is Tnt Memo. I am using widestring from Tnt, I was thinking that Tnt is in utf-8? Anywhay if I use urlencode on the character from Tnt Memo I am getting '?' as result. What should solve my problems with posting from Tnt Memo using ICS? On Thu, Nov 20, 2008 at 12:24 PM, Arno Garrels <[EMAI

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Arno Garrels
Irfan Mulic wrote: > So this is ansiChar is not widechar this is all in range of ansi > characters... Why should one display UTF-8 strings in a AnsiString memo? Anyway just to be sure, UTF-8 is a AnsiString (one byte element size of the data array), WideString contains UTF-16 data with two byte

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
So this is ansiChar is not widechar this is all in range of ansi characters... yes it is ICS issue, do you know is it fixed in newer versions? On Thu, Nov 20, 2008 at 11:25 AM, Arno Garrels <[EMAIL PROTECTED]> wrote: > Irfan Mulic wrote: > > Hi, > > > > Here is code: > > > > data := > > Format(

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Arno Garrels
Irfan Mulic wrote: > Hi, > > Here is code: > > data := > Format('date=%s&username=%s&password=%s&hash=%s¬e=%s&action=%s', > [UrlEncode(FormatDateTime('mmddhh:nn',now)), > UrlEncode(edtUserName.Text), > UrlEncode(getMd5(edtPassword.Text)), > UrlEncode(getMd5(dataHash)),UrlEncode(memoNote.

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
Hi, Here is code: data := Format('date=%s&username=%s&password=%s&hash=%s¬e=%s&action=%s', [UrlEncode(FormatDateTime('mmddhh:nn',now)), UrlEncode(edtUserName.Text), UrlEncode(getMd5(edtPassword.Text)), UrlEncode(getMd5(dataHash)),UrlEncode(memoNote.Text),'i' ]); This memoNote.tex

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Arno Garrels
Irfan Mulic wrote: > I am using V5, first link on download page. Ah, ok. >>> I am having troubles to work with unicode data ? What kind of problems do you have exactly? Can you show some code? With POST you just write data to a stream which is send as is. There is an example how to post multi-

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
I am using V5, first link on download page. On Thu, Nov 20, 2008 at 5:26 AM, Arno Garrels <[EMAIL PROTECTED]> wrote: > Irfan Mulic wrote: > > Hi, > > > > I start using ICS components and I really like them. > > Which ICS version are yuo using? > > -- > Arno Garrels [TeamICS] > http://www.overbyte

Re: [twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Arno Garrels
Irfan Mulic wrote: > Hi, > > I start using ICS components and I really like them. Which ICS version are yuo using? -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > I am having troubles to work with unicode data ? > > Can I get more info is this supported and can

[twsocket] Posting unicode data in HTTP Post

2008-11-20 Thread Irfan Mulic
Hi, I start using ICS components and I really like them. I am having troubles to work with unicode data ? Can I get more info is this supported and can I get some examples of it. I am using example httppost with Delphi 7. Thank you. -- Irfan Mulic -- To unsubscribe or change your settings

Re: [twsocket] Posting datatoweb serverusing THttpCliunder usercontrol

2006-11-22 Thread Clay Shannon
<<> Do you see any wholes in my logic? I don't.>> Partials? The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If the reader of this message is not the intended recipient, you are hereby notifie

Re: [twsocket] Posting data toweb serverusing THttpCliunder usercontrol

2006-11-22 Thread Francois Piette
Message - From: "Cosmin Prund" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, November 22, 2006 2:20 PM Subject: Re: [twsocket] Posting data toweb serverusing THttpCliunder usercontrol > Francois Piette wrote: > > This is proxy implementation dep

Re: [twsocket] Posting data to web serverusing THttpCliunder usercontrol

2006-11-22 Thread Cosmin Prund
Francois Piette wrote: > This is proxy implementation dependent. The proxy could buffer the document > up to some point and then give up and forward everything. It could also > handle document differently according to the content-type. > > If you consider this would not happend, then it's OK for me

Re: [twsocket] Posting data to web serverusing THttpCliunder usercontrol

2006-11-22 Thread Francois Piette
> I'll re-explain how my downstream (that is - HTTP > download) connection works. The client requests a document from my web > server. It does this going through the proxy. The server response (200 > OK), does NOT send an Content-length header and starts sending the > document very very slowly, but

Re: [twsocket] Posting data to web server using THttpCliunder usercontrol

2006-11-22 Thread Cosmin Prund
Francois PIETTE wrote: >> Using hgWillSendMySelf I noticed the proxy server immediately connects >> the client to the server and the connection is kept open as long as I'm >> sending data. If the proxy server does the same for the "long HTTP post" >> it would provide a very valuable tool for what I

Re: [twsocket] Posting data to web server using THttpCli under usercontrol

2006-11-21 Thread Cosmin Prund
Francois Piette wrote: >> I'm using THttpServer to send a document myself (using hgWillSendMySelf) >> so I can keep sending new data without requiring a new connection. It >> works just fine. Now I want to do the same the other way around: I want >> to use THttpCli to continually "post" data, witho

Re: [twsocket] Posting data to web server using THttpCliunder usercontrol

2006-11-21 Thread Francois PIETTE
> Using hgWillSendMySelf I noticed the proxy server immediately connects > the client to the server and the connection is kept open as long as I'm > sending data. If the proxy server does the same for the "long HTTP post" > it would provide a very valuable tool for what I need. I wouldn't base my

Re: [twsocket] Posting data to web server using THttpCli under usercontrol

2006-11-21 Thread Francois Piette
> I'm using THttpServer to send a document myself (using hgWillSendMySelf) > so I can keep sending new data without requiring a new connection. It > works just fine. Now I want to do the same the other way around: I want > to use THttpCli to continually "post" data, without closing the connection.

[twsocket] Posting data to web server using THttpCli under user control

2006-11-21 Thread Cosmin Prund
Hello everyone. I'm using THttpServer to send a document myself (using hgWillSendMySelf) so I can keep sending new data without requiring a new connection. It works just fine. Now I want to do the same the other way around: I want to use THttpCli to continually "post" data, without closing the

Re: [twsocket] POSTing images to a server

2006-08-30 Thread Mohit Sindhwani
Arno Garrels wrote: > Mohit Sindhwani wrote: > >> The basic POST works now - I can submit data to a form. But, I can't >> begin to get my head around the things involved in posting images to >> the application. I understand that I need to post it as a multi-part >> form with a suitable separ

Re: [twsocket] POSTing images to a server

2006-08-30 Thread Arno Garrels
Mohit Sindhwani wrote: > The basic POST works now - I can submit data to a form. But, I can't > begin to get my head around the things involved in posting images to > the application. I understand that I need to post it as a multi-part > form with a suitable separator for the parts, then set the

[twsocket] POSTing images to a server

2006-08-30 Thread Mohit Sindhwani
Hi! I've just started to play with the Httpcli component and I'm hoping to create a program that will allow me to post images to a web application. The basic POST works now - I can submit data to a form. But, I can't begin to get my head around the things involved in posting images to the app