473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2396
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
0
by: jacob c. | last post by:
When I request a URL using urllib2, it appears that urllib2 always makes the request using HTTP 1.0, and not HTTP 1.1. I'm trying to use the "If-None-Match"/"ETag" HTTP headers to conserve...
8
by: turnit \(removethis\) | last post by:
I have a login form that uses the post method to carry the information to the next page. The form works just fine in ie6.0, but fails in mozilla and fails in ie5.2 on a mac. "HTTP/1.1 400 Bad...
4
by: Justin Malloy | last post by:
I am using the System.Net.Webclient to try and download an XML file from a website but am receiving a HTTP protocol error when running the DownloadFile() sub routine. I did a HTTP trace using...
6
by: Microsoft News | last post by:
Hi, I have been using several http server code examples from the web, include one from msdn, and I can't seem to get a simple http server thread working. I can connect the server successful...
0
by: WIWA | last post by:
Hi, I want to login to a password protected website and fetch the content of the page behind. I have based my code on http://weblogs.asp.net/jdennany/archive/2005/04/23/403971.aspx. When I use...
3
by: Patrick Fogarty | last post by:
I am programming what is to be a web service client that will use an HTTP-POST to request and retrieve data. The remote server (written in java for what it's worth) requires basic authentication...
1
by: omantawy | last post by:
Hi, I have some legacy ASP web applications that use an unmanaged COM component to connect to a third party application. The third part application has moved to the managed code in the current...
2
by: MDANH2002 | last post by:
Hi From VB.NET I want to simulate the POST request of the following HTML form <html> <title>HTTP Post Testing</title> <body> <form action=http://www.example.com/postdata ...
3
by: =?Utf-8?B?U3ViYQ==?= | last post by:
Hi I having a similar issue. my website url has https://blahblahblah but when i do Response.Write(Request.Url); it writes the url with http..........its really strange........i dont have a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.