SessionParameters string value being truncated
Hello
I have the following string
content=Viewer&Volume=STC
Reports&Name=Dummy&UserID=15&CustomerID=11&StartDate=1 September 2005
00:00&EndDate=30 September 2005
23:30&Meters=2000051634739&RANK=1&ReportID=15&ReportType=1&LocName=Ash
Vale - Astute
Class&PeriodType=3&Duration=4&UnitsType=1&CT=0&MD=1&LocationSelection=Ash
Vale - Astute Class&Pred=0&ReportPeriod=
I then assign this string into a session parameter using the code below
objWebRequest.SessionParameters['QueryString'].Value:=strQueryString;
content=Viewer&Volume=STC
Reports&Name=Dummy&UserID=15&CustomerID=11&StartDate=1 September 2005
00:00&EndDate=30 September 2005
23:30&Meters=2000051634739&RANK=1&ReportID=15&ReportType=1&LocName=Ash
Vale - Astute Class&PeriodType=3&Duration=4&UnitsType=1&CT
Does anyone know what is happening here? The length of the truncated string
is 330 which seems to be a strange number to limit the parameters to
Cheers
Paul
I have the following string
content=Viewer&Volume=STC
Reports&Name=Dummy&UserID=15&CustomerID=11&StartDate=1 September 2005
00:00&EndDate=30 September 2005
23:30&Meters=2000051634739&RANK=1&ReportID=15&ReportType=1&LocName=Ash
Vale - Astute
Class&PeriodType=3&Duration=4&UnitsType=1&CT=0&MD=1&LocationSelection=Ash
Vale - Astute Class&Pred=0&ReportPeriod=
I then assign this string into a session parameter using the code below
objWebRequest.SessionParameters['QueryString'].Value:=strQueryString;
content=Viewer&Volume=STC
Reports&Name=Dummy&UserID=15&CustomerID=11&StartDate=1 September 2005
00:00&EndDate=30 September 2005
23:30&Meters=2000051634739&RANK=1&ReportID=15&ReportType=1&LocName=Ash
Vale - Astute Class&PeriodType=3&Duration=4&UnitsType=1&CT
Does anyone know what is happening here? The length of the truncated string
is 330 which seems to be a strange number to limit the parameters to
Cheers
Paul
This discussion has been closed.
Comments
For an http Get the length of the URL string is limited. However forr a Post
there is no limit.
http://support.microsoft.com/kb/q208427/
I do not think the SessionParameters has a limit on the length of a
parameter string. The parameter values are stored as Variants (see
ppParameter.pas in RBuilder\Source).
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I know that they are stored in variants, but when I step through the code I
can clearly see the value being truncated?
Cheers
Paul
Truncated by the debugger output? Or the variant? Or RB?
Try creating a simple example...
uses
ppParameter;
begin
myParameter := TppParameter.Create(nil);
myParameter.Value := {some huge string);
myHugeString := myParameter.Value;
end;
Does that code work?
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com