Hi all,

I have a small test program simple.pas (included)

When I compile and run it I get an exception. I've traced the problem to
some cookie changes made to *fphttpclient.pp*. Bypassing that, there's
another problem handling the format of the 'expires' cookie attribute in
*httpdefs.pp*.

FPC 3.3.1 (latest) Linux x86_64

Keep up the great work,

Regards,
David
{$mode objfpc}
program simple;

uses
	sysutils,
	fphttpclient,
	opensslsockets;
	
var
	http		: TFPHTTPClient;
	responseStr	: ansiString;
begin
	try
		http := TFPHTTPClient.create( nil );
		responseStr := http.get( 'https://www.google.com/' );
		http.free();
	except
		on e : exception do
		begin
			writeln( '>> ', e.message );
			writeln( 'error with google' );
			halt( 0 );
		end;
	end;
end.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to