| View previous topic :: View next topic |
| Author |
Message |
Dbof
Joined: 13 Jan 2009 Posts: 31
|
Posted: Sat Jul 18, 2009 3:34 pm Post subject: Accept-Language |
|
|
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 |
|
 |
temp01
Joined: 09 Jul 2009 Posts: 120
|
Posted: Sat Jul 18, 2009 9:00 pm Post subject: |
|
|
Add it in headers.. | Code: | | httpQuery(html:="", "url", "", "Accept-Lang....") |
|
|
| Back to top |
|
 |
Dbof
Joined: 13 Jan 2009 Posts: 31
|
Posted: Sun Jul 19, 2009 11:06 am Post subject: |
|
|
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 |
|
 |
temp01
Joined: 09 Jul 2009 Posts: 120
|
Posted: Sun Jul 19, 2009 11:22 am Post subject: |
|
|
| 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 |
|
 |
Dbof
Joined: 13 Jan 2009 Posts: 31
|
Posted: Sun Jul 19, 2009 1:51 pm Post subject: |
|
|
Oh, i've found the problem!
The Internet Explorer didn't show me the real page, but a cached version. After deleting the IE-Cache, is is working!
Thanks for your help!  |
|
| Back to top |
|
 |
|