PROXY  WHOIS  RQUOTE  TEXTS  SOFT  FOREX  BBOARD
 Radio  Music  Philosophy  Code  Literature  Russian

= ROOT|Technical|Code_Examples|C|proxy_judge.c =

page 1 of 1



#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

extern char **environ;
char *http="HTTP_";
char *remote="REMOTE_";
char *req="REQUEST_";

int main (int argc, char *argv[]){
 int i, httpl, remotel, reql;
 httpl=strlen(http);
 remotel=strlen(remote);
 reql=strlen(req);
 puts("Content-type: text/plain\n");
 for (i=0; i< 99; i++){
  if (environ[i]==NULL) break;
  if (strncmp(http, environ[i], httpl)==0 ||
   strncmp(req, environ[i], reql)==0 ||
   strncmp(remote, environ[i], remotel)==0){
   puts(environ[i]);
  }
 }
 return 0;
}

=1=
THE END

<<< SINGLE PAGE >>>

UP TO ROOT | UP TO DIR

Google
 

E-mail Facebook VKontakte Google Digg del.icio.us BlinkList NewsVine Reddit YahooMyWeb LiveJournal Blogmarks TwitThis Live News2.ru BobrDobr.ru Memori.ru MoeMesto.ru

0.00298882 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)