cgiRedirect(3)
π« cgiRedirect(3) β from the Programmer's Manual, bestie π«
Okay so welcome to the cgiRedirect(3) page, this one is short and sweet and honestly kind of a bop. It lives in the Programmer's Manual, and yes we're reading it together, hydrate first. π
β¨ NAME β¨
cgiRedirect β redirect the browser somewhere else π¦
Like, the whole personality is "send them elsewhere". That's it. That's the job.
β¨ SYNOPSYS β¨
(yes, spelled exactly like that, we love her, no notes π )
#include <cgi.h>
void cgiRedirect (char *url);
β¨ DESCRIPTION β¨
The cgiRedirect routine redirects the browser to another url. Lowkey its whole thing. No cap.
So the mechanism may be useful to redirect invalid requests to some static pages describing the policy. Which is so real β someone hits your CGI with a request that just doesn't work, and instead of leaving them staring at a void you send them off to a nice static page that explains the policy. Iconic behaviour, honestly. π
β¨ RETURN VALUE β¨
cgiRedirect() does not return a value.
That's it, she doesn't come back, she doesn't leave a note, she just goes. π
β¨ AUTHOR β¨
This CGI library is written by Martin Schulze <joey@infodrom.org>. If you have additions or improvements please get in touch with him. Fr fr, he wants to hear from you, don't be shy. π«Ά
β¨ SEE ALSO β¨
Go read those too, they're part of the same little family. πΈ
And that's the whole page bestie, no crumbs left. This was the CGI Library, dated 6 April 2008 β big vintage energy, still serving. Stay redirected, stay slay. πβ¨π
π¦ where this page comes from
- ubuntu jammy: cgilib 0.6-1.1
- Copyright (c) 1998,9,2008 by Martin Schulze <joey@infodrom.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms