Questions tagged [request-cancelling]

Stopping or safely ignoring a request, usually an HTTP transaction between a client and a server.

Stopping or safely ignoring a request, usually an HTTP transaction (GET, POST, etc.) between a client and a server.

This is most often applicable in an AJAX context -- especially if synchronous AJAX is used.

Requests can be canceled/ignored by the client and/or the server.

71 questions
0
votes
0 answers

Cancel request of website with chrome extension

Im trying to cancel every url requests that google chrome does with my extension, but I cant achieve it. Here's the code: // Headers.js var tabId = parseInt(window.location.search.substring(1)); function cancel(requestDetails) { …
0
votes
0 answers

Cancelling a search from the UI in asp.net mvc 4

I am still learning Asp.net MVC but I want to create a way for a user to cancel a search if it's taking too long. I am running VS 2010 and upgrading to 2012 is not an option, so I will not be able to use async/await options. I have been researching…
eaglei22
  • 2,589
  • 1
  • 38
  • 53
0
votes
1 answer

Cancelling Process in C#

I have 1 form and datagridview in it. When I click update button,new forms open with progressbar only. In that form I have 2 functions. 1 for connecting email and downloading excel file. The other for reading excel file and updating my database. It…
inanc
  • 1
  • 1
0
votes
1 answer

How to cancel a long running database insert/update operation from ASP.NET UI when the the operation is being oerformed by a Windows service

I see a question about this here. However, in my case, It is the windows service which in running the long running insert/update on a table and I need to cancel the operation from my ASP.NET application. In the above link Burnsys suggests that one…
Ashish Gupta
  • 14,869
  • 20
  • 75
  • 134
0
votes
2 answers

Handling cancelation of long running http requests in Android

I am looking for a more complete library that will enable me to cancel long running http requests (example file upload which is at least 100 MB of data). I have seen Volley which provides a cancelation API but it seems that it just handles not…
DArkO
  • 15,880
  • 12
  • 60
  • 88
0
votes
0 answers

Best Practices for cancelling XHR requests in AJAX-heavy PHP web applications

I'm the author of a PHP web application that provides a dashboard and control panel for its users' environments. For context, the architecture is roughly as follows: apache webserver w/ PHP 5.4 handling user interface requests MYSQL 5.5 (percona)…
Rimer
  • 2,054
  • 6
  • 28
  • 43
0
votes
1 answer

vb.net awesomium cancel request when url contains specific keyword

im using awesomium and vb.net as a client side application for my web application. Can anyone say me how to cancel a request when a url contain a specific key word. for example , if my url contains view , then i need to cancel the request and…
Yuvaraj
  • 166
  • 1
  • 2
  • 11
0
votes
1 answer

Google drive SDK: Cancel upload

How to cancel file upload request with Google Drive SDK? I'm creating .NET 4 task that calls FilesResource.InsertMediaUpload request = service.Files.Insert(body, stream, body.MimeType); request.Upload(); I can't use cancellation token here to…
axe
  • 2,331
  • 4
  • 31
  • 53
0
votes
1 answer

BinaryReader.ReadByte() doesn't TimedOut

I have an internet stream and I am creating reader from that var reader = new BinaryReader(stream); and after that I am reading bytes for searching "sync word" if (reader.ReadByte() != magic[i++]) But sometimes i have a problem with ReadByte(). I…
0
votes
1 answer

Cancel Requests on link clicked asp.net

I have a home page on a website (ASP.NET 4.0 C#) which loads a lot of data every time it is accessed (basically a dashboard). This can (depending on the user) take a while to load, so I broke each section into update panels and load them separately…
ian_mac123
  • 107
  • 1
  • 2
  • 14
-2
votes
1 answer

CORS ajax call fails despite of the appropriate Access-Control-Allow-* headers

I am performing an ajax call from a third-party-hosted script to my endpoint. The preflight call looks like this in Chrome: GENERAL Request URL: https://my_endpoints_url Request Method: OPTIONS Status Code: 200 Remote Address:…
Oignon_Rouge
  • 196
  • 1
  • 11
1 2 3 4
5