Braese Posted March 27, 2010 Share Posted March 27, 2010 (edited) Hi, i wrote sometimes ago a Google Chrome Updater in AutoIt. It works like a charm but doesnt work anymore. I changed some code here and there but i get nothing back from the XML Request. I know that the XML Request is correct, i analyzed it with Wireshark and the original Chrome Updater included in Google Chrome. Here is my Code so far: #include <HTTP.au3> $host='tools.google.com' $port=80 $page='/service/update2' _HTTPSetUserAgent("Google Update", "1.2.183.13") $socket = _HTTPConnect($host, $port) $data='<?xml version="1.0" encoding="UTF-8"?><o:gupdate xmlns:o="http://www.google.com/update2/response" protocol="2.0" version="1.2.183.13" ismachine="0" machineid="{11111111-1111-1111-1111-111111111111}" userid="{11111111-1111-1111-1111-111111111111}" requestid="{11111111-1111-1111-1111-111111111111}"><o:os platform="win" version="5.1" sp="Service Pack 3"/><o:app appid="{8A69D345-D564-463C-AFF1-A69D9E530F96}" version="" lang="de" brand="" client="" iid="{11111111-1111-1111-1111-111111111111}"><o:updatecheck tag="2.0-dev"/></o:app></o:gupdate>' _HTTPPost( $host, $page, $socket, $data ) $body = _HTTPRead( $socket, 0 ) MsgBox(0,"",$body) $position = StringInStr( $body,"codebase=" ) $urltmp = StringMid( $body,$position+10,Stringlen($body)-$position-10 ) $url = StringSplit( $urltmp,'"' ) MsgBox(0,"",$url) exit Any suggestions? When i look at $body i get a "<?" back, nothing more. Edited March 27, 2010 by Braese 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