AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Accept-Language

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Dbof



Joined: 13 Jan 2009
Posts: 31

PostPosted: Sat Jul 18, 2009 3:34 pm    Post subject: Accept-Language Reply with quote

Hello!
I need to know how to change the Accept-Language for the httpQuery-Function. Does anyone have any ideas how to manage that?

http://showip.be/
Here you can see:
Quote:
Accept-language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3

How could I change that?
Back to top
View user's profile Send private message
temp01



Joined: 09 Jul 2009
Posts: 120

PostPosted: Sat Jul 18, 2009 9:00 pm    Post subject: Reply with quote

Add it in headers..
Code:
httpQuery(html:="", "url", "", "Accept-Lang....")
Back to top
View user's profile Send private message
Dbof



Joined: 13 Jan 2009
Posts: 31

PostPosted: Sun Jul 19, 2009 11:06 am    Post subject: Reply with quote

No, it doesn't work. I use this code:
Code:
; httpQuery
#noenv

URL      := "http://www.gulli.com/tools/anonymitaetscheck/"

httpQueryReferer := "http://www.klick-game.de/joke-5011.html"
httpAgent := "I was hacked by Dbof! "

httpQuery(html := "", URL, "", "Accept-language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3")
varSetCapacity(html,-1)

FileAppend, %HTML%, test.html

RunWait, test.html
FileDelete, test.html   
ExitApp

The field where there should be recognized the language is empty (on the URL page).
Maybe there's anything wrong in my code??
Back to top
View user's profile Send private message
temp01



Joined: 09 Jul 2009
Posts: 120

PostPosted: Sun Jul 19, 2009 11:22 am    Post subject: Reply with quote

That code works for me - I get the Accept-Language header's value in "Sprache" (which I guess means Language in german?).
Back to top
View user's profile Send private message
Dbof



Joined: 13 Jan 2009
Posts: 31

PostPosted: Sun Jul 19, 2009 1:51 pm    Post subject: Reply with quote

Oh, i've found the problem!
The Internet Explorer didn't show me the real page, but a cached version. Rolling Eyes After deleting the IE-Cache, is is working!

Thanks for your help! Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group