AutoHotkey Community

It is currently May 26th, 2012, 8:13 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Accept-Language
PostPosted: July 18th, 2009, 4:34 pm 
Offline

Joined: January 13th, 2009, 10:02 pm
Posts: 31
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 18th, 2009, 10:00 pm 
Offline

Joined: July 9th, 2009, 9:25 pm
Posts: 120
Add it in headers..
Code:
httpQuery(html:="", "url", "", "Accept-Lang....")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2009, 12:06 pm 
Offline

Joined: January 13th, 2009, 10:02 pm
Posts: 31
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??


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2009, 12:22 pm 
Offline

Joined: July 9th, 2009, 9:25 pm
Posts: 120
That code works for me - I get the Accept-Language header's value in "Sprache" (which I guess means Language in german?).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 19th, 2009, 2:51 pm 
Offline

Joined: January 13th, 2009, 10:02 pm
Posts: 31
Oh, i've found the problem!
The Internet Explorer didn't show me the real page, but a cached version. :roll: After deleting the IE-Cache, is is working!

Thanks for your help! :wink:


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, over21, SifJar, SKAN, StepO and 65 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group