Jump to content

IE: any way to change user agent for session?


djelica
 Share

Recommended Posts

Hello dear AutoIt fellas.

This is first time i post as i couldn't find solution for the task i need to do.

Currently I am using Run(iexplore) function with -private and -nomerge parameters. Then i attach to the process using ieattach and continue with my automation.

Problem: I need User Agent changed for the open session without it reverting back to default.

Currently i use $oIE.navigate() where i set user agent header, but it is only for one single request, so if server decides to redirect me for some reason (for example mobile UA, or detecting browser using async js) user agent is already reverted back to default and ... you get it.

I tried: a lot of stuff...

What worked?: only for embedded ie which isn't acceptable for my task.

 

Any solution for this?

Best regards.

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...