PDA

View Full Version : Browser parameters


usef
09-30-2005, 10:51 AM
Hi,

does anybody know how to let a custom program (e.g. using the Borland NMHTTP component) behave like a "real" browser like Mozilla/Netscape/IE?
The aim is that I want to try to make the browser identification/recognition of server side scripts believe that there is a "real" browser at the other end of the wire.

Generally, what parameters have I to set how?
For example, what should the applicationname contain? "Mozilla 4.0" or simply "Mozilla"?

petronel
09-30-2005, 02:11 PM
i don't think aplication name will do something
when you request a webpage you need to set the useragent to something like:
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050804 Firefox/1.0.6 (MOOX M2)"