No, I did not cross my mind to solve the problem by searching for a 
specific funtion in a versy specific file.
I may be a natural step if you are an expert on ICS but for others, it 
is far from a possible step in problem solving.

However, I appreciate the help but it still does not work.
When using the URLEncode function, no data at all are posted. Before the 
data was posted as one long string but now, nothing is posted.

Regards,

Perry Jönsson

Francois Piette wrote:

>>Is there a method called UrlEncode?
>>If, well, not in my version.
>>    
>>
>
>Did you use Delphi "Find in file" feature to search in VC32 and Internet 
>directories ?
>You would immediatley see that UrlEncode is located in IcsUrl.pas file.
>
>--
>[EMAIL PROTECTED]
>Author of ICS (Internet Component Suite, freeware)
>Author of MidWare (Multi-tier framework, freeware)
>http://www.overbyte.be
>
>
>----- Original Message ----- 
>From: "Public" <[EMAIL PROTECTED]>
>To: "ICS support mailing" <twsocket@elists.org>
>Sent: Tuesday, September 20, 2005 1:51 PM
>Subject: Re: [twsocket] HTTPCli.Post - removing spaces!
>
>
>  
>
>>Hello,
>>
>>Maybe a daft question but how?
>>
>>Is there a method called UrlEncode?
>>If, well, not in my version.
>>
>>Regards,
>>
>>Perry Jönsson
>>
>>Francois Piette wrote:
>>
>>    
>>
>>>Use UrlEncode function.
>>>
>>>--
>>>Contribute to the SSL Effort. Visit
>>>http://www.overbyte.be/eng/ssl.html
>>>--
>>>[EMAIL PROTECTED]
>>>Author of ICS (Internet Component Suite, freeware)
>>>Author of MidWare (Multi-tier framework, freeware)
>>>http://www.overbyte.be
>>>
>>>
>>>----- Original Message ----- 
>>>From: "Public" <[EMAIL PROTECTED]>
>>>To: <twsocket@elists.org>
>>>Sent: Tuesday, September 20, 2005 11:27 AM
>>>Subject: [twsocket] HTTPCli.Post - removing spaces!
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>Hello,
>>>>
>>>>I am using HTTPCli to post data to a web-site.
>>>>
>>>>Example code is:
>>>>
>>>>   sData :=  'CustomerNo=' + MainWnd.FCustomerNumber + '&' +
>>>>             'Pwd=' + MainWnd.FPwd + '&' +
>>>>             'Subject='  + dbEditSubject.Text;
>>>>
>>>>   HttpCli1.SendStream := TMemoryStream.Create;
>>>>   HttpCli1.SendStream.Write(sData[1], Length(sData));
>>>>   HttpCli1.SendStream.Seek(0, 0);
>>>>   HttpCli1.RcvdStream := TMemoryStream.Create;
>>>>   HttpCli1.URL := MainWnd.FBaseURL + 'postmessage.asp';
>>>>   HttpCli1.Post;
>>>>
>>>>
>>>>I am using the default encode type, ContentTypePost:
>>>>application/x-www-form-urlencoded
>>>>
>>>>
>>>>
>>>>PROBLEM / QUESTION:
>>>>My data that are posted may contains spaces (Subject=Bla bla bla).
>>>>When reviewing the data, all spaces has been removed.
>>>>
>>>>I have tested posting the same data via a web-form to the same
>>>>web-script. This works fine. The spaces are there.
>>>>
>>>>What do I do wrong?
>>>>
>>>>
>>>>Regards,
>>>>
>>>>Perry Jönsson
>>>>
>>>>
>>>>
>>>>-- 
>>>>To unsubscribe or change your settings for TWSocket mailing list
>>>>please goto http://www.elists.org/mailman/listinfo/twsocket
>>>>Visit our website at http://www.overbyte.be
>>>>
>>>>
>>>>        
>>>>
>>>
>>>      
>>>
>>-- 
>>To unsubscribe or change your settings for TWSocket mailing list
>>please goto http://www.elists.org/mailman/listinfo/twsocket
>>Visit our website at http://www.overbyte.be
>>    
>>
>
>  
>
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to