BASH 12
Test-cgi Guest on 26th September 2020 07:13:55 PM
  1. #!/bin/sh
  2.  
  3. echo Content-type: text/plain
  4. echo
  5.  
  6. echo CGI/1.0 test script report:
  7. echo
  8.  
  9. echo argc is $#. argv is "$*".
  10. echo
  11.  
  12. echo SERVER_SOFTWARE = $SERVER_SOFTWARE
  13. echo SERVER_NAME = $SERVER_NAME
  14. echo GATEWAY_INTERFACE = $GATEWAY_INTERFACE
  15. echo SERVER_PROTOCOL = $SERVER_PROTOCOL
  16. echo SERVER_PORT = $SERVER_PORT
  17. echo REQUEST_METHOD = $REQUEST_METHOD
  18. echo HTTP_ACCEPT = "$HTTP_ACCEPT"
  19. echo PATH_INFO = "$PATH_INFO"
  20. echo PATH_TRANSLATED = "$PATH_TRANSLATED"
  21. echo SCRIPT_NAME = "$SCRIPT_NAME"
  22. echo QUERY_STRING = "$QUERY_STRING"
  23. echo REMOTE_HOST = $REMOTE_HOST
  24. echo REMOTE_ADDR = $REMOTE_ADDR
  25. echo REMOTE_USER = $REMOTE_USER
  26. echo AUTH_TYPE = $AUTH_TYPE
  27. echo CONTENT_TYPE = $CONTENT_TYPE
  28. echo CONTENT_LENGTH = $CONTENT_LENGTH
  29. finger

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.