mozilla
검색 결과

    NPN_UserAgent

    이 문서는 기술적인 검토가 필요합니다.

    아직 자원 봉사자들이 한국어로 현재 문서를 번역하지 않았습니다. 가입해서 이 문서가 번역되는 일에 함께 해 주세요!

    « Gecko Plugin API Reference « Browser Side Plug-in API

    Summary

    Returns the browser's user agent field. This can be used to handle variations in different browsers (or versions thereof) when implementing your plug-in.

    Syntax

    #include <npapi.h>
     
    const char* NPN_UserAgent(NPP instance);
    

    Parameters

    The function has the following parameter:

    instance
    Pointer to the current plug-in instance.

    Returns

    A pointer to a buffer that contains the user agent field of the browser.

    Description

    The user agent is the part of the HTTP header that identifies the browser during transfers. You can use this information to verify that the expected browser is in use, or you can use it in combination with NPN_Version() to supply different code for different versions of the same browser.

    See also

    문서 태그 및 공헌자

    Contributors to this page: Pmash, Sheppy, kscarfone
    최종 변경: kscarfone,