Frans van Daalen wrote:
> From: "Arno Garrels"
>>
>> Instead the component should provide access to parts of a URL,
>> either by var-parameters in event OnLocationChange
>
> As said before the OnLocationChange is to late. That event is
> triggered just before the relocate will execute. All proper
Francois PIETTE wrote:
>> Here I do not agree, basically the server has to provide a valid
>> relocation URL, anything else is a client-side workaround.
>
> You are right. But we initially agreed that the there must be a
> workaround since a browse correctly handle the redirection,
> transparently
> A faster and more copmlete function UrlEncode should
> be made available.
Here's my faster suggestion, only I'm not sure about the characters
allowed in a complete URL, may be someone has the idea?
function UrlCheckEncode(const S: String): String;
const
UrlAllowedChars : TCharSet = ['a'..'
Plus from my perspective, there should be a conditional compilation option
for thread-safety.
Regards,
SZ
- Original Message -
From: "Francois PIETTE" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Saturday, April 21, 2007 5:31 PM
Subject: Re: [twsocket] Httpcli cookie
>> Your
> Your funtions are based on the assumption that there is a manager per
> httpcli, but maybe beter to have a manager that can handle multiple
> httpcli?
Indeed.
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be
--
To unsubsc
> Here I do not agree, basically the server has to provide a valid
> relocation URL, anything else is a client-side workaround.
You are right. But we initially agreed that the there must be a workaround
since a browse correctly handle the redirection, transparently encoding the
relocation URL.
From: "Frans van Daalen"
>
>> procedure Purge; // Purge all expired cookies
>
> ? what should this one do?
>
arg maybe I schould read the command about the expired cookies :-)
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/lis
From: "Arno Garrels"
>
> Instead the component should provide access to parts of a URL,
> either by var-parameters in event OnLocationChange
As said before the OnLocationChange is to late. That event is triggered just
before the relocate will execute. All properties of the thttpcli are then
alre
From: "Francois PIETTE"
>
>> For all readers, if you can think of any cookiemanager functions etc,
>> just
>> list them and I'll see what I can do.
>
Your funtions are based on the assumption that there is a manager per
httpcli, but maybe beter to have a manager that can handle multiple httpcli?
Thanks, it's exactly what I was looking for.
Regards,
Jacky Hicks
Selon Arno Garrels <[EMAIL PROTECTED]>:
> [EMAIL PROTECTED] wrote:
> > Hello everybody,
> >
> > I searched for a few hours now, but did not found a way to send a
> > file by HTTP POST using ICS HTTPCli.
> > I read that I need to
Francois PIETTE wrote:
>> If you think -- like me -- that it is the
>> responsibility of the application developer to
>> properly encode URLs, and not the component, then the
>> solution for those applications that require the
>> IE-like behaviour is for the developer to call
>> UrlEncode himself
>>> How would you add to the current httpcli (v6) component a cookie-manager
>>> in a non code breaking manner as the current cookie is defined as a
>>> string?
>> Write a TCookieManager component.
>> Create a new property CookieManager in the HTTP component.
>> At design time, link the cookie ma
From: "Francois PIETTE"
>>> Note that you can derive your own HTTP component from ICS component and
>>> add
>>> the storage or manager you like. In my opinion, it is better to write a
>>> separate class for cookie management and link that class to your HTTP
>>> component. A cookie manager component
>> Note that you can derive your own HTTP component from ICS component and
>> add
>> the storage or manager you like. In my opinion, it is better to write a
>> separate class for cookie management and link that class to your HTTP
>> component. A cookie manager component would be a nice addon to ICS
From: "Francois PIETTE"
> Normally, cookies are managed by the application. It is not always that
> simple because of path and expiration. You can have a lot of cookies
> grabbed
> from one or even several URL while redirecting. So you should really write
> some manager code to have cookies somewh
Normally, cookies are managed by the application. It is not always that
simple because of path and expiration. You can have a lot of cookies grabbed
from one or even several URL while redirecting. So you should really write
some manager code to have cookies somewhat persistant. That's why the ev
While the discussion for the urlencode on autorelocate is going nicely :-) I
also have a small remark to make about the cookie property.
Currently the following is done when a cookie is received
-
else if Field = 'set-cookie' then begin
bAccept := TRUE;
> Francois,
> Then there are situations that your previous
> argument will fail: Consider an application using
> HttpCli that does not automatically encode URLs in
> the URL property. Users will complain that "If I
> enter in IE it works, but your
> software is broken!". If your response is "
[EMAIL PROTECTED] wrote:
> Hello everybody,
>
> I searched for a few hours now, but did not found a way to send a
> file by HTTP POST using ICS HTTPCli.
> I read that I need to MultiPart encode my stream, but found no
> function to do it.
>
> Is it possible ? How ? Got a sample somewhere ?
Have
19 matches
Mail list logo