Hi, since Image just creates an <img src="..."> tag, I doubt that it will be possible this way. You could however use an XMLHttpRequest. There you can call getResponseHeader(...) Maybe you'll just send a HEAD request, and then include the image normally via Image(), which fetches the real content. This will add an additional request however, and if the captcha server is very restrictive, it might not allow this.
Chris On Feb 16, 11:34 pm, macker <[email protected]> wrote: > I'm currently writing a user registration page which includes a > captcha image. The captcha image is generated and received from an > external server which also sends through a session id in the image > response header. The sessionId is included so that the client can send > it back in the payload in order for the server to validate the > captcha. > > As far as I can see the GWT Image() sends a HTTP request to retrieve > an image but does not have access to retrieve the response headers > which is what I need. > > Is there anyway I can get the response headers from the image response > through Image()? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
