Hi,
I've found a bug: HTTPRequest just doesn't sending a browser id at all. A typical log entry:
127.0.0.1 - - [19/Sep/2007:15:15:03 +0200] "GET /xxx HTTP/1.1" 200 5449 "-" "-"
Instead of something like:
127.0.0.1 - - [19/Sep/2007:15:15:03 +0200] "GET /xxx HTTP/1.1" 200 5449 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7"
The best would be, if the HTTPRequest would use the same id as the internal browser engine has. And just another idea: make it possible to override this default id, like:
var r = new HTTPRequest();
r.setClientId("Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7");
r.get("http://kirix.com/");
Andras
Kirix Support Forums
Difference browser and HTTPRequest IDs
2 posts
• Page 1 of 1
- BarthaziAndras
- Registered User
- Posts: 9
- Joined: Thu Sep 13, 2007 12:08 pm
Re: Difference browser and HTTPRequest IDs
BarthaziAndras wrote:The best would be, if the HTTPRequest would use the same id as the internal browser engine has
Thanks for the suggestion!
BarthaziAndras wrote:And just another idea: make it possible to override this default id
As far as setting the HTTPRequest() agent, use the setUserAgent() function:
var http, result;
http = new HTTPRequest;
http.setUserAgent("Sample Agent");
result = http.get("http://my.sample.domain.com");
See here for the HTTPRequest documentation: http://www.kirix.com/docs/HTTPRequest.html
#352
Aaron Williams
Kirix Support Team
Kirix Support Team
-
Aaron - Kirix Support Team
- Posts: 120
- Joined: Fri Dec 16, 2005 3:01 pm
2 posts
· Page 1 of 1
Return to Bug Reports & Suggestions