> No problem. Still same result.
> Attached the export from Wireshark (only 33kb text).
> By the way I'm testing on Windows XP.
> Ludo

Ok! I am getting each time closer =D

I found out why I couldn't read the text, probably an invalid
character comes in (UTF-8 byte order market probably) and gtk2 gives
up writing the text.

I changed to Qt and now I am getting more interresting results. I also
changed the code a little bit so that I can receive gzip content, like
Opera will receive:

procedure TForm1.buttonReadHeadersClick(Sender: TObject);
var
  Client: THttpSend;
begin
  Client := THttpSend.Create;

  Client.Headers.Add('Accept:   
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8');
  Client.Headers.Add('Accept-Language:  en-gb,en;q=0.5');
//  Client.Headers.Add('Accept-Encoding:        gzip,deflate');
  Client.Headers.Add('Accept-Charset:   ISO-8859-1,utf-8;q=0.7,*;q=0.7');

  Client.UserAgent := editUserAgent.Text;
  Client.HttpMethod('GET', editURL.Text);
  Client.Document.Position := 0;
  memoHeaders.Lines.LoadFromStream(Client.Document);
  memoHeaders.Text := Client.Headers.Text + 'Size=' +
IntToStr(Client.Document.Size) + LineEnding + memoHeaders.Text;
  Client.Free;
end;

-- 
Felipe Monteiro de Carvalho

------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to