Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

HTTP request

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Web Server in DMZ  
Author Message
sunil159

External


Since: Mar 01, 2004
Posts: 2



(Msg. 1) Posted: Mon Mar 01, 2004 8:54 am
Post subject: HTTP request
Archived from groups: microsoft>public>inetserver>iis (more info?)

I need some basic insight into the workings of a HTTP request and a
HTTP response. i'am using ASP.net.

1. what happens when a request is sent and the user clicks the STOP
button of the browser.
a. does the request goes through to the server?
b. will any server-side code gets executed?
c. if there is any database operations, will they get executed?

the scenario here is that, there is a online shopping site which does
credit card processing with database updates.

There is a possibility that the credit card transaction goes through
before the user hits the STOP button and the database updates does
not. The end result will be stale data! Please guide.


Thanks in advance.

Sunil.B

 >> Stay informed about: HTTP request 
Back to top
Login to vote
user164

External


Since: Aug 01, 2003
Posts: 172



(Msg. 2) Posted: Mon Mar 01, 2004 1:15 pm
Post subject: Re: HTTP request [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > I need some basic insight into the workings of a HTTP request and a
 > HTTP response. i'am using ASP.net.

Not that we don't want to help, but the RFC is pretty simple to read, and is
always a better place to start than asking here.

 > 1. what happens when a request is sent and the user clicks the STOP
 > button of the browser.
 > a. does the request goes through to the server?

Yes.

 > b. will any server-side code gets executed?

Yes.

 > c. if there is any database operations, will they get executed?

Yes.

 > the scenario here is that, there is a online shopping site which does
 > credit card processing with database updates.

Naturally.

 > There is a possibility that the credit card transaction goes through
 > before the user hits the STOP button and the database updates does
 > not. The end result will be stale data! Please guide.

HTTP is a request/response protocol. A client sends a request, the server
responds, the client renders the data. If a request is sent to the server,
all the Stop button does is prevents the client from rendering the data that
the server returned. You can't stop a request that has been sent from being
processed by the server--all you can do is save your system the trouble of
rendering the returned data that you don't care to see.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: HTTP request 
Back to top
Login to vote
albatross_sing

External


Since: Mar 01, 2004
Posts: 9



(Msg. 3) Posted: Mon Mar 01, 2004 2:19 pm
Post subject: Re: HTTP request [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Greetings

Use @transaction. This will ensure that either all the elements will get
executed of none of them will get executed.

Hope this helps.
Albatross Singh



"Sunil" <sunil159.TakeThisOut@yahoo.com> wrote in message
news:665aa6d9.0403010554.48dd3a55@posting.google.com...
 > I need some basic insight into the workings of a HTTP request and a
 > HTTP response. i'am using ASP.net.
 >
 > 1. what happens when a request is sent and the user clicks the STOP
 > button of the browser.
 > a. does the request goes through to the server?
 > b. will any server-side code gets executed?
 > c. if there is any database operations, will they get executed?
 >
 > the scenario here is that, there is a online shopping site which does
 > credit card processing with database updates.
 >
 > There is a possibility that the credit card transaction goes through
 > before the user hits the STOP button and the database updates does
 > not. The end result will be stale data! Please guide.
 >
 >
 > Thanks in advance.
 >
 > Sunil.B<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: HTTP request 
Back to top
Login to vote
sunil159

External


Since: Mar 01, 2004
Posts: 2



(Msg. 4) Posted: Tue Mar 02, 2004 1:00 am
Post subject: Re: HTTP request [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

thanks all for your response.

By @transaction, you mean that we use a begin transaction and commit
transaction in the server side code. Having all the transactions in
one block. Please explain.

Thanks,

Sunil.B

 >"Albatross Singh" <albatross_singh.RemoveThis@hotmail.com> wrote in message news:<Ocil3j6$DHA.3220@TK2MSFTNGP10.phx.gbl>...
 > Greetings
 >
 > Use @transaction. This will ensure that either all the elements will get
 > executed of none of them will get executed.
 >
 > Hope this helps.
 > Albatross Singh
 >
 >
 >
 > "Sunil" <sunil159.RemoveThis@yahoo.com> wrote in message
 > news:665aa6d9.0403010554.48dd3a55@posting.google.com...
  > > I need some basic insight into the workings of a HTTP request and a
  > > HTTP response. i'am using ASP.net.
  > >
  > > 1. what happens when a request is sent and the user clicks the STOP
  > > button of the browser.
  > > a. does the request goes through to the server?
  > > b. will any server-side code gets executed?
  > > c. if there is any database operations, will they get executed?
  > >
  > > the scenario here is that, there is a online shopping site which does
  > > credit card processing with database updates.
  > >
  > > There is a possibility that the credit card transaction goes through
  > > before the user hits the STOP button and the database updates does
  > > not. The end result will be stale data! Please guide.
  > >
  > >
  > > Thanks in advance.
  > >
  > > Sunil.B<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: HTTP request 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
HTTP 400 - Bad Request - A while back I posted with regard to the above error message; following the advice I have turned off show friendly errors the displayed message is now Host Header Required Description: Your Broswer did not send a "Host" HTTP header field an...

HTTP 400 - Bad Request - Hello folks, I may not be in the right place so apologies if not I have a small IIS 6.0 site on my Windows 2000 server that is used to require user acceptance of school rules prior to accessing the Internet. This works fine and 95% of web browsing is..

HTTP 400 - Bad Request - Hi, We are getting HTTP 400 - Bad Request after changing the website from http to https .In some machines it is working and in some machines it is givining this erro. Please suggest OS is xp professional with sp1a. Thanks Murali

HTTP 400 - Bad Request - We are currenlty in a testing phase on an ASP.NET / C# project and have encountered the "HTTP 400 - Bad Request" error. This only happens for one client. Our logs only report the following: 2004-05-10 06:56:37 xxx.xxx.xxx.xxx - W3SVC5 FEN...

HTTP 1.1 400 Bad request - Hi, We have installed Jrun4.0 in Win 2k and its running along with IIS 5.0. Presently a request to any website hosted in the server from Netscape 7.1 in PC or IE 5.2 in Mac we get this error "HTTP/1.1 400 Bad request". This happens only ...
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]