So you have to care about the cookie : this means you have to dynamically get the current cookie of the personne whose requests are going to be rewrite to the new *.v2 URL
so if you have the cookie of that personne in a variable $COOKIE, then :
Hello.
I have scenario where a Client send request to Server1.
Server1 send request to Server2.
Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client.
Trying to use APACHE proxy...
Anyone can help?
What to download / configure / ...?
Thank you for your help. (1 Reply)
Hello.
I have scenario where a Client send request to Server1.
Server1 send request to Server2.
Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client.
Trying to use APACHE proxy...
Anyone can help?
What to download / configure / ...?
Thank you for your... (2 Replies)
I am trying to remove the context name from the url of my server.
Current URL - http://www.domainname.com/MyApp/
What I need to make is to make it avaialble at -
http://www.domainname.com/
I have already tried couple of things like below -
RewriteEngine On
RewriteCond... (0 Replies)
Here is what I have so far:
find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}'
Here is an example content of a PHP or HTM(HTML) file:
<iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Hi,
Googled around but I couldn't find anything similar. I'm looking to do the following in apache..
if a user comes into the following URL.
http://www.example.com/some/thing.cid?wholebunch_of_stuff_here
keep the URL exactly as is BUT add &something at the very end of it.
thanks in... (1 Reply)
Hello,
I have added following rewrite cond and rewrite rules but it does not work.
RewriteCond %{HTTP_REFERER} ^http://192\.168\.1\.150/categories/.*$
RewriteRule ^(.*)$ http://www.blahblah.com/
When I hit url : http://192.168.1.150/categories/881-Goes?page=7 in my browser - it... (2 Replies)
Hello,
Am very new to perl , please help me here !!
I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file.
below is the script which i have written so far ,
#!/usr/bin/perl
use LWP::UserAgent;
use... (2 Replies)
Hi guys,
What is the regex to check for only valid URL from a file using grep? (2 Replies)
Discussion started by: Meeran Rizvi
2 Replies
LEARN ABOUT DEBIAN
xfreeeventdata
XGetEventData(3) XLIB FUNCTIONS XGetEventData(3)NAME
XGetEventData, XFreeEventData, XGenericEventCookie - retrieve and free additional event data through cookies.
SYNTAX
Bool XGetEventData(Display *display, XGenericEventCookie *cookie);
void XFreeEventData(Display *display, XGenericEventCookie *cookie);
ARGUMENTS
display Specifies the connection to the X server.
cookie Specifies the cookie to free or retrieve the data for.
STRUCTURES
typedef struct {
int type;
unsigned long serial;
Bool send_event;
Display *display;
int extension;
int evtype;
unsigned int cookie;
void *data;
} XGenericEventCookie;
DESCRIPTION
Some extension XGenericEvents require additional memory to store information. For these events, the library returns a XGenericEventCookie
with a token ('cookie') unique to this event. The XGenericEventCookie's data pointer is undefined until XGetEventData is called.
The XGetEventData function retrieves this extra data for the given cookie. No round-trip to the server is required. If the cookie is
invalid or the event is not an event handled by cookie handlers, False is returned. If XGetEventData returns True, the cookie's data
pointer points to the memory containing the event information. A client must call XFreeEventData to free this memory. XGetEventData
returns False for multiple calls for the same event cookie.
The XFreeEventData function frees the data associated with a cookie. A client must call XFreeEventData for each cookie claimed with
XGetEventData.
EXAMPLE CODE
XEvent event;
XGenericEventCookie *cookie = &ev;
XNextEvent(display, &event);
if (XGetEventData(display, cookie)) {
handle_cookie_event(cookie->data);
} else
handle_event(&event);
}
XFreeEventData(display, cookie);
NOTES
A cookie is defined as unclaimed if it has been returned to the client through XNextEvent but its data has not been retrieved via
XGetEventData. Subsequent calls to XNextEvent may free memory associated with unclaimed cookies. Multi-threaded X clients must ensure
that XGetEventData is called before the next call to XNextEvent.
SEE ALSO XNextEvent(3),
Xlib - C Language X Interface
X Version 11 libX11 1.5.0 XGetEventData(3)