469,133 Members | 1,114 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

HTTP 1.1/400 Bad Request

I have been trying to figure out why I am getting this message... I have an
application that is 20 different ASP pages that works in sequential order
(step1, step2, step3...). After each step the app writes the entered text
to a cookie. This feature is so that if there is a problem, we can still
retrieve the data.

This Bad Request error has something to do with the cookie that is written
to, because I can go all the way through the app to the last step (step20)
and then it gives me a Bad Request. If I clear my cookies then it works
fine, until step 20 again.

Does anyone know what may be going on here? I am guessing that it has to do
with the size of the cookie, but I am unsure how I can accomplish this task
(allowing the entered data to be retrieved) without cookies.

Thanks,
Drew
Jul 22 '05 #1
6 2230
How much data is being put in the cookies? I have heard of browser limits on
the size but not server-side limits.

Could you use hidden form fields instead?

--
--Mark Schupp
"Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:uT**************@TK2MSFTNGP14.phx.gbl...
I have been trying to figure out why I am getting this message... I have an
application that is 20 different ASP pages that works in sequential order
(step1, step2, step3...). After each step the app writes the entered text
to a cookie. This feature is so that if there is a problem, we can still
retrieve the data.

This Bad Request error has something to do with the cookie that is written
to, because I can go all the way through the app to the last step (step20)
and then it gives me a Bad Request. If I clear my cookies then it works
fine, until step 20 again.

Does anyone know what may be going on here? I am guessing that it has to
do with the size of the cookie, but I am unsure how I can accomplish this
task (allowing the entered data to be retrieved) without cookies.

Thanks,
Drew

Jul 22 '05 #2
The cookie I have on my computer (same error for me) is 13.2KB...

There is a great deal of data going in there... What about using the FSO to
write to a file? Does FSO have the ability to write to a file on the client
computer?

Thanks,
Drew
"Mark Schupp" <no******@email.net> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
How much data is being put in the cookies? I have heard of browser limits
on the size but not server-side limits.

Could you use hidden form fields instead?

--
--Mark Schupp
"Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:uT**************@TK2MSFTNGP14.phx.gbl...
I have been trying to figure out why I am getting this message... I have
an application that is 20 different ASP pages that works in sequential
order (step1, step2, step3...). After each step the app writes the
entered text to a cookie. This feature is so that if there is a problem,
we can still retrieve the data.

This Bad Request error has something to do with the cookie that is
written to, because I can go all the way through the app to the last step
(step20) and then it gives me a Bad Request. If I clear my cookies then
it works fine, until step 20 again.

Does anyone know what may be going on here? I am guessing that it has to
do with the size of the cookie, but I am unsure how I can accomplish this
task (allowing the entered data to be retrieved) without cookies.

Thanks,
Drew


Jul 22 '05 #3
Does the data have to persist past the last step (page 20)?

If not, have each page include the data from the previous pages in hidden
form fields. If so, a server-side database would be an option (just keep the
user id in the cookie).

Server-side script cannot write files to the client's system. You could use
a component on the client-side to do so but that would require the user to
grant permission.

--
--Mark Schupp
"Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:eo**************@tk2msftngp13.phx.gbl...
The cookie I have on my computer (same error for me) is 13.2KB...

There is a great deal of data going in there... What about using the FSO
to write to a file? Does FSO have the ability to write to a file on the
client computer?

Thanks,
Drew
"Mark Schupp" <no******@email.net> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
How much data is being put in the cookies? I have heard of browser limits
on the size but not server-side limits.

Could you use hidden form fields instead?

--
--Mark Schupp
"Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:uT**************@TK2MSFTNGP14.phx.gbl...
I have been trying to figure out why I am getting this message... I have
an application that is 20 different ASP pages that works in sequential
order (step1, step2, step3...). After each step the app writes the
entered text to a cookie. This feature is so that if there is a problem,
we can still retrieve the data.

This Bad Request error has something to do with the cookie that is
written to, because I can go all the way through the app to the last
step (step20) and then it gives me a Bad Request. If I clear my cookies
then it works fine, until step 20 again.

Does anyone know what may be going on here? I am guessing that it has
to do with the size of the cookie, but I am unsure how I can accomplish
this task (allowing the entered data to be retrieved) without cookies.

Thanks,
Drew



Jul 22 '05 #4
I am actually inserting this data into a SQL Server database, but I wanted
to implement a "safety net", in case someone has some problems, then we can
cut and paste the data back into the app.

My cookie code looks like this,

Dim AllText

If Request.Form("RelationshipsSocialization")<>"" Then
AllText = Request.Form("RelationshipsSocialization")
End If

If Request.Form("Communications")<>"" Then
AllText = AllText & Request.Form("Communications")
End If

Response.Cookies("ELPStep17")=AllText
Response.Cookies("ELPStep17").Expires= Now() + 10

The code fires on the page after the step, i.e. step17's data is put into a
cookie and inserted to the DB on step18.asp.

Is it possible to create more than 1 cookie from a domain? My cookies now
look like this,

dlaing@swvtc06[2].txt

Thanks,
Drew

"Mark Schupp" <no******@email.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Does the data have to persist past the last step (page 20)?

If not, have each page include the data from the previous pages in hidden
form fields. If so, a server-side database would be an option (just keep
the user id in the cookie).

Server-side script cannot write files to the client's system. You could
use a component on the client-side to do so but that would require the
user to grant permission.

--
--Mark Schupp
"Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:eo**************@tk2msftngp13.phx.gbl...
The cookie I have on my computer (same error for me) is 13.2KB...

There is a great deal of data going in there... What about using the FSO
to write to a file? Does FSO have the ability to write to a file on the
client computer?

Thanks,
Drew
"Mark Schupp" <no******@email.net> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
How much data is being put in the cookies? I have heard of browser
limits on the size but not server-side limits.

Could you use hidden form fields instead?

--
--Mark Schupp
"Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:uT**************@TK2MSFTNGP14.phx.gbl...
I have been trying to figure out why I am getting this message... I have
an application that is 20 different ASP pages that works in sequential
order (step1, step2, step3...). After each step the app writes the
entered text to a cookie. This feature is so that if there is a
problem, we can still retrieve the data.

This Bad Request error has something to do with the cookie that is
written to, because I can go all the way through the app to the last
step (step20) and then it gives me a Bad Request. If I clear my
cookies then it works fine, until step 20 again.

Does anyone know what may be going on here? I am guessing that it has
to do with the size of the cookie, but I am unsure how I can accomplish
this task (allowing the entered data to be retrieved) without cookies.

Thanks,
Drew



Jul 22 '05 #5
I'm not familiar enough with cookies to help you much (the only cookie we
use is the session cookie).

Since you have a database available anyway why not keep the data in a table
in the database? Then just keep a record identifier in the cookie. Your
cookie retrieve/set code would turn into database select/update statements.
Clear the temporary data when the final update is done. Have a cleanup job
run occasionally to delete abandoned records.

--
Mark Schupp

"Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:eU****************@tk2msftngp13.phx.gbl...
I am actually inserting this data into a SQL Server database, but I wanted
to implement a "safety net", in case someone has some problems, then we can cut and paste the data back into the app.

My cookie code looks like this,

Dim AllText

If Request.Form("RelationshipsSocialization")<>"" Then
AllText = Request.Form("RelationshipsSocialization")
End If

If Request.Form("Communications")<>"" Then
AllText = AllText & Request.Form("Communications")
End If

Response.Cookies("ELPStep17")=AllText
Response.Cookies("ELPStep17").Expires= Now() + 10

The code fires on the page after the step, i.e. step17's data is put into a cookie and inserted to the DB on step18.asp.

Is it possible to create more than 1 cookie from a domain? My cookies now
look like this,

dlaing@swvtc06[2].txt

Thanks,
Drew

"Mark Schupp" <no******@email.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Does the data have to persist past the last step (page 20)?

If not, have each page include the data from the previous pages in hidden form fields. If so, a server-side database would be an option (just keep
the user id in the cookie).

Server-side script cannot write files to the client's system. You could
use a component on the client-side to do so but that would require the
user to grant permission.

--
--Mark Schupp
"Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:eo**************@tk2msftngp13.phx.gbl...
The cookie I have on my computer (same error for me) is 13.2KB...

There is a great deal of data going in there... What about using the FSO to write to a file? Does FSO have the ability to write to a file on the client computer?

Thanks,
Drew
"Mark Schupp" <no******@email.net> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
How much data is being put in the cookies? I have heard of browser
limits on the size but not server-side limits.

Could you use hidden form fields instead?

--
--Mark Schupp
"Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:uT**************@TK2MSFTNGP14.phx.gbl...
>I have been trying to figure out why I am getting this message... I have>an application that is 20 different ASP pages that works in sequential
>order (step1, step2, step3...). After each step the app writes the
>entered text to a cookie. This feature is so that if there is a
>problem, we can still retrieve the data.
>
> This Bad Request error has something to do with the cookie that is
> written to, because I can go all the way through the app to the last
> step (step20) and then it gives me a Bad Request. If I clear my
> cookies then it works fine, until step 20 again.
>
> Does anyone know what may be going on here? I am guessing that it has> to do with the size of the cookie, but I am unsure how I can accomplish> this task (allowing the entered data to be retrieved) without cookies.>
> Thanks,
> Drew
>



Jul 22 '05 #6
Yeah, I understand your suggestions... Thanks for your help, I am just going
to abandon the feature and forget about it!

Thanks,
Drew

"Mark Schupp" <no****@nospam.com> wrote in message
news:uN**************@tk2msftngp13.phx.gbl...
I'm not familiar enough with cookies to help you much (the only cookie we
use is the session cookie).

Since you have a database available anyway why not keep the data in a
table
in the database? Then just keep a record identifier in the cookie. Your
cookie retrieve/set code would turn into database select/update
statements.
Clear the temporary data when the final update is done. Have a cleanup job
run occasionally to delete abandoned records.

--
Mark Schupp

"Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
news:eU****************@tk2msftngp13.phx.gbl...
I am actually inserting this data into a SQL Server database, but I
wanted
to implement a "safety net", in case someone has some problems, then we

can
cut and paste the data back into the app.

My cookie code looks like this,

Dim AllText

If Request.Form("RelationshipsSocialization")<>"" Then
AllText = Request.Form("RelationshipsSocialization")
End If

If Request.Form("Communications")<>"" Then
AllText = AllText & Request.Form("Communications")
End If

Response.Cookies("ELPStep17")=AllText
Response.Cookies("ELPStep17").Expires= Now() + 10

The code fires on the page after the step, i.e. step17's data is put into

a
cookie and inserted to the DB on step18.asp.

Is it possible to create more than 1 cookie from a domain? My cookies
now
look like this,

dlaing@swvtc06[2].txt

Thanks,
Drew

"Mark Schupp" <no******@email.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
> Does the data have to persist past the last step (page 20)?
>
> If not, have each page include the data from the previous pages in hidden > form fields. If so, a server-side database would be an option (just
> keep
> the user id in the cookie).
>
> Server-side script cannot write files to the client's system. You could
> use a component on the client-side to do so but that would require the
> user to grant permission.
>
> --
> --Mark Schupp
>
>
> "Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
> news:eo**************@tk2msftngp13.phx.gbl...
>> The cookie I have on my computer (same error for me) is 13.2KB...
>>
>> There is a great deal of data going in there... What about using the FSO >> to write to a file? Does FSO have the ability to write to a file on the >> client computer?
>>
>> Thanks,
>> Drew
>>
>>
>> "Mark Schupp" <no******@email.net> wrote in message
>> news:OM**************@TK2MSFTNGP12.phx.gbl...
>>> How much data is being put in the cookies? I have heard of browser
>>> limits on the size but not server-side limits.
>>>
>>> Could you use hidden form fields instead?
>>>
>>> --
>>> --Mark Schupp
>>>
>>>
>>> "Drew" <dr********@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
>>> news:uT**************@TK2MSFTNGP14.phx.gbl...
>>>>I have been trying to figure out why I am getting this message... I have >>>>an application that is 20 different ASP pages that works in
>>>>sequential
>>>>order (step1, step2, step3...). After each step the app writes the
>>>>entered text to a cookie. This feature is so that if there is a
>>>>problem, we can still retrieve the data.
>>>>
>>>> This Bad Request error has something to do with the cookie that is
>>>> written to, because I can go all the way through the app to the last
>>>> step (step20) and then it gives me a Bad Request. If I clear my
>>>> cookies then it works fine, until step 20 again.
>>>>
>>>> Does anyone know what may be going on here? I am guessing that it has >>>> to do with the size of the cookie, but I am unsure how I can accomplish >>>> this task (allowing the entered data to be retrieved) without cookies. >>>>
>>>> Thanks,
>>>> Drew
>>>>
>>>
>>>
>>
>>
>
>



Jul 22 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Michael Foord | last post: by
reply views Thread by jacob c. | last post: by
8 posts views Thread by turnit \(removethis\) | last post: by
4 posts views Thread by Justin Malloy | last post: by
6 posts views Thread by Microsoft News | last post: by
reply views Thread by WIWA | last post: by
3 posts views Thread by =?Utf-8?B?U3ViYQ==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.