Sign in to follow this  
Followers 0
djelica

IE: any way to change user agent for session?

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

HttpSetUserAgent

Sets the HTTP user-agent string which is sent with all Inet requests

 

im using iexplore therefore no good.

Edited by djelica

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I have same question. Do you have any solution ?

Edited by WRed

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0