MyEarth Posted January 30, 2014 Share Posted January 30, 2014 (edited) Hello guys, I have searching around and i have found only way to set custom user agent, accept language etc. but not how to get it I want to retriive ALL of this information: GET / HTTP/1.1 Accept: text/html, application/xhtml+xml, */* Accept-Language: en-US User-Agent: Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko Accept-Encoding: gzip, deflate Proxy-Connection: Keep-Alive Host: microsoft.com This is the script i have tried but not give me the Accept encodind, accept language , user strings etc. $URL = "http://www.microsoft.com" $objHTTP = ObjCreate("winhttp.winhttprequest.5.1") $objHTTP.Open("HEAD", $URL, False) $objHTTP.Send("") $headers = $objHTTP.getAllResponseHeaders ConsoleWrite($headers) Thnaks Edited January 30, 2014 by MyEarth Link to comment Share on other sites More sharing options...
wakillon Posted January 30, 2014 Share Posted January 30, 2014 Servers do not return infos you used in the request... Are you talking about an external soft for get header used by a browser or something else ? AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
trancexx Posted January 30, 2014 Share Posted January 30, 2014 Former is client request and latter is server response.If the server is responding then it's not accepting, why do you expect to get "Accept-Encoding" or similar then? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
MyEarth Posted January 30, 2014 Author Share Posted January 30, 2014 (edited) http://msdn.microsoft.com/library/ms537503.aspx Where i can get this type of information? I'm intrested expecially in the language and the user string, but if i can collect all is better. Thanks Edited January 30, 2014 by MyEarth Link to comment Share on other sites More sharing options...
trancexx Posted January 30, 2014 Share Posted January 30, 2014 Collect from where or what? That's the answer that's wanted from you. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
MyEarth Posted January 30, 2014 Author Share Posted January 30, 2014 I'd like to know what is the header my browser sent to a xyz site, example microsoft.com I have try with telnet but i can't it get work: http://evolvedcode.net/content/doc_alttelnet/index_p2.asp Maybe you guys-girls can Link to comment Share on other sites More sharing options...
wakillon Posted January 30, 2014 Share Posted January 30, 2014 Depends of your browser, but there is some extensions for see http header. AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
MyEarth Posted January 30, 2014 Author Share Posted January 30, 2014 I have IE. If example i want to get this information using _IE_Func() is possible? This old but working site give the http header of your browser: http://www.reliply.org/tools/requestheaders.php I want to do the same but with autoit. Thanks for the help Link to comment Share on other sites More sharing options...
wakillon Posted January 30, 2014 Share Posted January 30, 2014 I don't think it's possible in pure AutoIt. You can try the free edition of HttpWatch for get http header used by your browser. AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now