Changeset 42 for trunk/WebServer/UHTTPServer.pas
- Timestamp:
- Nov 21, 2010, 8:49:46 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebServer/UHTTPServer.pas
r40 r42 7 7 uses 8 8 Classes, SysUtils, UTCPServer, UCommon, UMemoryStreamEx, UMIMEType, 9 Synautil, UStringListEx, SpecializedObjectList;9 Synautil, SpecializedObjectList, SpecializedList; 10 10 11 11 type … … 29 29 THTTPRequest = class 30 30 Query: TQueryParameterList; 31 QueryParts: T StringListEx;31 QueryParts: TListString; 32 32 Path: string; 33 33 Method: string; … … 253 253 begin 254 254 Query := TQueryParameterList.Create; 255 QueryParts := T StringListEx.Create;255 QueryParts := TListString.Create; 256 256 Headers := TStringList.Create; 257 257 Cookies := TCookieList.Create; … … 272 272 var 273 273 I: Integer; 274 Parts: T StringListEx;275 Pair: T StringListEx;274 Parts: TListString; 275 Pair: TListString; 276 276 begin 277 277 try 278 Parts := T StringListEx.Create;279 Pair := T StringListEx.Create;278 Parts := TListString.Create; 279 Pair := TListString.Create; 280 280 Clear; 281 Parts.Explode( '&', Text);281 Parts.Explode(Text, '&', StrToStr); 282 282 for I := 0 to Parts.Count - 1 do begin 283 Pair.Explode( '=', Parts[I]);283 Pair.Explode(Parts[I], '=', StrToStr); 284 284 if Pair.Count >= 2 then 285 285 Values[Pair[0]] := Pair[1]; … … 307 307 var 308 308 I: Integer; 309 Parts: T StringListEx;310 Pair: T StringListEx;309 Parts: TListString; 310 Pair: TListString; 311 311 begin 312 312 try 313 Parts := T StringListEx.Create;314 Pair := T StringListEx.Create;313 Parts := TListString.Create; 314 Pair := TListString.Create; 315 315 Clear; 316 Parts.Explode( ';', Text);316 Parts.Explode(Text, ';', StrToStr); 317 317 for I := 0 to Parts.Count - 1 do begin 318 Pair.Explode( '=', Parts[I]);318 Pair.Explode(Parts[I], '=', StrToStr); 319 319 if Pair.Count >= 2 then 320 320 Values[Trim(Pair[0])] := Trim(Pair[1]);
Note:
See TracChangeset
for help on using the changeset viewer.