Skip to content

header + form does not seem to be changing user-agent #728

@bagobones

Description

@bagobones

I am using headers, form to try and log into a web form. However the sites bot protection is showing the user agent as python and rejecting it..

headers:
User-Agent: "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0"

Agent detected by the site (I am admin and can see the logs):

AGENT: Python-urllib%2F2.7

It appears that the form plugin is the one that is not sending the new user agent.

I saw an old ticket indicating that using the default Python agent was a bad idea, and I agree. The program should probably ID as flexget + build number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions