The HIV test is designed to detect antibodies to HIV in your blood or saliva. Antibodies are proteins produced by your body when you have an infection and they help fight infection. If you are infected with HIV, your body makes very specific antibodies to fight the infection. The HIV antibodies are different from antibodies for the flu, hepatitis, or other infections.