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 ?
Regards,
Jacky Hicks
--
To unsubscribe or
[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 a look
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 address with a space in IE it works, but your
software is broken!. If your
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;
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
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 somewhat
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
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
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 manager
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 at the
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 MultiPart
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?
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
already
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
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.
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
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 twsocket@elists.org
Sent: Saturday, April 21, 2007 5:31 PM
Subject: Re: [twsocket] Httpcli
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
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 properties of
19 matches
Mail list logo