Hi All, While testing my embedded browser (Firefox 2.0.0.6 code base), I ran across this site that consistently fails.
The site is Flixster.com and it uses cookie to verify the characters in an image. (to counter automatically generated registration requests.). In my embedded browser, the registration page fails to redirect to the next page. and always return me back to the registration page. In Ethereal, the difference between embedded browser and Firefox 3.0b4 is obvious: Here is the firefox HTTP packet: // ======================================== Firefox sends out this request: POST /userAuth.do HTTP/1.1 Host: www.flixster.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4) Gecko/2008030714 Firefox/3.0b4 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://www.flixster.com/userAuth.do?displayRegister= Cookie: __gads=ID=0b6071988ad5dc9c:T=1206125987:S=ALNI_MaCAXfxdS_Y1QcrxCVIIICxO1PFrg; __utma=27263211.1571772873.1206125983.1206456579.1206479500.3; __utmz=27263211.1206125983.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __qca=1201978530-45995052-21228652; JSESSIONID=11D8B46CBA4F6E682DACCE9A6C36F586.localhost; __utmb=27263211; __utmc=27263211; __qcb=693699893; testCookie=flixsterWorks; captchaCookie=d03596dda6a4d0ad0ebde090dcc94783062be062 Content-Type: application/x-www-form-urlencoded Content-Length: 237 userauthAction=doRegister&countryName=United+States&userauthEmail=s1235%40s1235.com&userauthFirstName=s&userauthLastName=s&dobMonth=2&dobDay=3&dobYear=1981&hideAge=true&userauthPassword=1235&captcha=ghkb&submit=Join+Flixster // ----------------------------------------------------------------------- Server responds with a redirect: HTTP/1.1 302 Moved Temporarily Date: Tue, 25 Mar 2008 21:21:06 GMT Server: Apache Expires: Sat, 6 May 1995 12:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Set-Cookie: [EMAIL PROTECTED]; Domain=.flixster.com; Expires=Wed, 25-Mar-2009 21:21:06 GMT; Path=/ Set-Cookie: loggedInCookie=819299674#{SHA}rBqyPWKIcRvmSiW/E0Mrrx5gsr0=; Domain=.flixster.com; Path=/ Set-Cookie: autoLoginCookie=819299674#{SHA}rBqyPWKIcRvmSiW/E0Mrrx5gsr0=; Domain=.flixster.com; Expires=Wed, 25-Mar-2009 21:21:06 GMT; Path=/ Location: http://www.flixster.com/inviteDisplay.do?displayInvite=&wiz=true Content-Length: 0 Vary: User-Agent Keep-Alive: timeout=10, max=100 Connection: Keep-Alive Content-Type: text/plain; charset=UTF-8 // ======================================== Here is the HTTP packets from the embedded browser: // ======================================== browser sends out this request: First packet: POST /userAuth.do HTTP/1.1 Host: www.flixster.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20080327 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://www.flixster.com/userAuth.do?displayRegister= Cookie: __gads=ID=f7fadabf9f5cabe9:T=1206624044:S=ALNI_MYtK6AlK5ovGVbEvAo47c69NrCN8A; __qca=1206587765-19948213-99345422; __utmz=27263211.1206624037.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none); __utma=27263211.1951460417.1206624037.1206715093.1206717132.10; JSESSIONID=3CE1DA814EE697632A7B328EA0F2D930.localhost; __utmb=27263211; __utmc=27263211; __qcb=540636320; testCookie=flixsterWorks; captchaCookie=41bc1fbea7006d00d13897cafb53041a396f5fb1 Second Packet: Content-Type: application/x-www-form-urlencoded Content-Length: 253 userauthAction=doRegister&countryName=United+States&userauthEmail=s1242%401242.com&userauthFirstName=s&userauthLastName=s&dobMonth=1&dobDay=13&dobYear=1982&hideAge=true&userauthPassword=1242&captcha=cmde&newsletter=true&submit=Join+Flixster+ // ----------------------------------------------------------------------- Server responds with the original registration page: HTTP/1.1 200 OK Date: Wed, 26 Mar 2008 05:51:15 GMT Server: Apache Expires: Sat, 6 May 1995 12:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Language: en Vary: User-Agent,Accept-Encoding Content-Encoding: gzip Keep-Alive: timeout=10, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html;charset=ISO-8859-1 // ======================================== The issue is that the embedded browser's HTTP Request somehow got broken into two packets (while Firefox's HTTP request sits in one packet nicely). I don't know if this explains why Flixster server fails to redirect the embedded browser. (But it seems to be the only culprit, since the two POST requests are almost identical except the number of IP packets they sit across.) Thanks for any help, -Steve _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
