Questions tagged [intercept]

A programming interface for intercepting input device communication.

461 questions
11
votes
3 answers

With jQuery, How Do I Intercept Hyperlink Click Events Temporarily?

This question refers to affiliate marketing, but really is a generic question about intercepting hyperlinks before they go off to another site, where you can log visitor activity to a database. My affiliate marketing client had a really good…
Volomike
  • 23,743
  • 21
  • 113
  • 209
10
votes
4 answers

intercepting file system system calls

I am writing an application for which I need to intercept some filesystem system calls eg. unlink. I would like to save some file say abc. If user deletes the file then I need to copy it to some other place. So I need unlink to call my code before…
gaurav
  • 872
  • 2
  • 10
  • 25
10
votes
4 answers

Intercept slice operations in Python

I want to imitate a normal python list, except whenever elements are added or removed via slicing, I want to 'save' the list. Is this possible? This was my attempt but it will never print 'saving'. class InterceptedList(list): def…
erik
  • 6,406
  • 3
  • 36
  • 36
9
votes
2 answers

How to intercept (detect) a Paste command into a TMemo?

How to catch Paste command and change text of Clipboard before that text is pasted into a TMemo, but, after Paste, text in Clipboard must be same like before changing? Example, Clipboard have text 'Simple Question', text that go in the TMemo is…
Srdjan Vukmirica
  • 743
  • 2
  • 8
  • 22
8
votes
3 answers

Firefox plugin that intercepts certain HTTP requests

Is there a way to make a Firefox plugin intercept certain requests and respond to them without hitting the network? Example: every time the browser is about to request http://www.example.com/page.html, the plugin automatically returns "Hello world!"…
Ro Marcus Westin
  • 28,490
  • 4
  • 18
  • 11
8
votes
2 answers

Intercept incoming flash messages on android mobile

can anyone help me to intercept the incoming Flash messages (specially the ones from the telecom company, where they send our current balance after some activity like message sent). My application deals with sending SMSes in bulk and I don't want…
Name is Nilay
  • 2,743
  • 4
  • 35
  • 77
7
votes
1 answer

Python Twisted proxy - how to intercept packets

I'm trying to print out the body of a HTTP response using Python. Here is my code sofar: from twisted.web import proxy, http from twisted.internet import reactor from twisted.python import log import sys log.startLogging(sys.stdout) class…
Eamorr
  • 9,872
  • 34
  • 125
  • 209
7
votes
1 answer

Intercept network call from Android Java/JNI

Hi i wish to intercept any network activity happening in android device. Say for example browser is opening http connection to some website or api. If this is not possible then at least i wish to intercept browser url android say firefox chrome or…
silentsudo
  • 6,730
  • 6
  • 39
  • 81
7
votes
1 answer

How to get WebViewClient.shouldInterceptRequest invoked asynchronously

I want to create an Intranet-Application. This app is going to show content, normally only reachable in our internal environment. e.g. http://intranet.ourfirm.com Now we are having the possibility to access this content from external e.g.…
Luke
  • 595
  • 1
  • 5
  • 19
7
votes
3 answers

How to intercept every AJAX request from a webpage

I need the way to intercept all ajax requests maded from page. So i need some wrapper to add my data to all users requests.
Andrey Nikishaev
  • 3,759
  • 5
  • 40
  • 55
7
votes
1 answer

Fitting a polynomial with a known intercept

I am using lm(y~poly(x,2)) to fit a second-order polynomial to my data. But I just couldn't find a way to specify a known intercept value. How can I fit a polynomial model with a known intercept value (say 'k') using lm?
rm167
  • 1,185
  • 2
  • 10
  • 26
7
votes
2 answers

How can I intercept dlsym calls using LD_PRELOAD?

I want to intercept application's calls to dlsym. I have tried declaring inside the .so that I am preloading dlsym , and using dlsym itself to get it's real address, but that for quite obvious reasons didn't work. Is there a way easier than taking…
user1588911
  • 71
  • 1
  • 3
6
votes
1 answer

intercepting the openat() system call for GNU tar

I'm trying to intercept the openat() system call on Linux using a custom shared library that I can load via LD_PRELOAD. An example intercept-openat.c has this content: #define _GNU_SOURCE #include #include #include…
Julius Plenz
  • 63
  • 1
  • 3
6
votes
2 answers

Android WebView instant crash with shouldInterceptRequest override

I am having some 'fun' with an Android WebView. I am using it to show a login screen and then intercept the auth code on response. Should be pretty straightforward... My WebView loads and displays absolutely fine if I only override…
Flint
  • 249
  • 2
  • 9
6
votes
2 answers

Intercepting exceptions

I'd like to use to a custom exception to have a user-friendly message come up when an exception of any sort takes place. What's a good straightforward way of doing this? Are there any extra precautions I should take to avoid interfering with Swing's…
James P.
  • 19,313
  • 27
  • 97
  • 155
1
2
3
30 31