Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Please handle Cookies

Closed548432ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 4 years ago
Descriptionplain2002-04-25 04:28:29
Recently I did some client-side programming to talk
with eBay,
including handling logging in as a seller.

This doesn't work without propagating cookies.

I had to write my own cookie remembering code.

Since many sites require cookies for various
reasons, it would be beneficial if someone
enhanced the http:: package to support
the propagation of cookies when dealing
with a site.
dkfplain2002-04-25 16:42:08
Logged In: YES 
user_id=79902

Many people get quite up-tight about cookies, more
particularly so when you've got persistent cookies about. 
However, session cookies are not too bad IMO.

(Flying a kite) Proposed API:
  http::config -cookies ?none|session|persistent?
Whether to accept cookies
  http::config -cookiefile ?filename?
Where to store persistent cookies
  http::cookie list ?pattern?
List cookies whose creator matches the pattern
  http::cookie delete ?pattern?
Delete cookies whose creator matches the pattern

Patterns default to matching all cookies.  Don't know format
for patterns otherwise (several things you might wish to
match against.)  Session cookies persist until whatever
variable inside the http namespace that stores them gets
deleted.  :^)
davidwplain2002-09-27 05:36:30
Logged In: YES 
user_id=240

There is some code in Rivet that does cookie handling.  You
are welcome to have a look:

http://tcl.apache.org/sources/tcl-rivet/rivet/rivet-tcl/

Of course, Rivet takes care of getting the cookies out of
the headers, so that part would have to be written elsewhere.
dgp Ticket [548432ffff]: 1 change [History diff]2003-11-13 06:00:41
kjnashplain2022-05-30 16:47:58
Donal Fellows has implemented cookies in http 2.10 (Tcl 8.7).

Please try this new code.
kjnash Closed ticket [548432ffff]. [History diff]2022-08-28 19:04:08
Log in (anonymous is fine) to add a comment.