7 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Just joined and registered 15 minutes ago.
Can't figure out how to post a new question about 'grep'
I searched and found that I need to click the 'New Thread' button, I couldn't see any 'New Thread' buttons anywhere, so I searched around and ended up here where I DO see a 'new thread' button....... (3 Replies)
Discussion started by: TuftyDave
3 Replies
2. Forum Support Area for Unregistered Users & Account Problems
Dear Moderator
I am not able to post any new thread or post reply to mine old thread.
Kindly help as i am stuck on one problem and needed suggestion.
Regards
Jaydeep (1 Reply)
Discussion started by: jaydeep_sadaria
1 Replies
3. Post Here to Contact Site Administrators and Moderators
Hi scoot
Hope you are doing well!!
I didn't post any new thread, is their any problem in my access
could you please check it and let me know.
Previously posted threads was one of my interview question and i didn't understand how to solve , i am a new for shell script, i didn't find any help... (2 Replies)
Discussion started by: ksakil
2 Replies
4. UNIX for Advanced & Expert Users
Hello everyone,
I created a test program for pthread priority set. Here's the code, very simple, 60 lines only.
I've tried this prog on my Fedora 13(on vbox), and on my 6410 arm linux 2.6.36. Both the same result.
Both environments are using root privileges.
Can any body tells me why the... (15 Replies)
Discussion started by: ss1969
15 Replies
5. Post Here to Contact Site Administrators and Moderators
I've made the thread title as descriptive as possible since I don't know if the admins can open it.
Well sure, now I can open THIS one. I'm getting it on any other thread I try in What's On Your Mind and High Level Programming.
Okay, it's decided to make a liar of me now. It seems to be... (2 Replies)
Discussion started by: Corona688
2 Replies
6. Forum Support Area for Unregistered Users & Account Problems
I can not Post a Thread. (1 Reply)
Discussion started by: spiderman3k
1 Replies
7. Post Here to Contact Site Administrators and Moderators
I am unable to open the mimesender thread. I get the following message when clicking on https://www.unix.com/showthread.php?p=33233#post33233 : (2 Replies)
Discussion started by: dangral
2 Replies
Ns_ConnReturn(3aolserver) AOLserver Library Procedures Ns_ConnReturn(3aolserver)
__________________________________________________________________________________________________________________________________________________
NAME
Ns_ConnRedirect - Internally redirect a request to a new local url
SYNOPSIS
#include "ns.h"
int
Ns_ConnRedirect(conn, url)
ARGUMENTS
Ns_Conn conn (in) Pointer to open connection.
char *url (in) Pointer to string of local url.
_________________________________________________________________
DESCRIPTION
This routine can be used to internally redirect to a new, local url on the server. The url paramter specifies a path relative to the
server, i.e., without the leading "http://host:port" portion. The server will reset the Ns_Request structure in the open connection
pointed to by conn and restart connection handling, including authorization checks. The result is a standard AOLserver request procedure
result code, either from an underlying call to Ns_ConnRunRequest or the result of one of the authorization response routines such as
Ns_ConnReturnForbidden. Filter callbacks, if any, are not run again with the updated connection.
The Ns_ConnRedirect routine is used internally in the server to support the basic file serving code (i.e., "fastpath") to redirect to spe-
cific files when a directory is opened and by the Ns_RegisterRedirect routine to map standard reponse routines to user-provided local
url's.
EXAMPLE
The following example demonstrates redirecting to an ADP help page within a custom C-level request callback whenever a ?help=topic query
argument is present:
int
MyRequest(void *arg, Ns_Conn *conn)
{
Ns_Set *query = Ns_ConnGetQuery(conn);
/* Redirect to help.adp for /myrequest?help=topic calls. */
if (Ns_SetGet(query, "help")) != NULL) {
return Ns_ConnReturnRedirect(conn, "/help.adp");
}
... handle non-help requests ...
}
SEE ALSO
Ns_RegisterRedirct(3), Ns_ConnRunRequest(3), Ns_AuthorizeRequest(3)
KEYWORDS
connection, redirect
AOLserver 4.0 Ns_ConnReturn(3aolserver)