EtherCard lib, large pages not fitting the send buffer

Hi!
Im using the EtherCard lib for interfacing my atmega328P (think Arduino Uno) with an ENC28J60 ethernet module, making a webb server.
I define the send and receive buffer, and a BufferFiller like this:

byte Ethernet::buffer[1200]; // tcp/ip send and receive buffer
BufferFiller bFill;

And then I write my html code in a function like this:

static word getPage()
{
	bFill = ether.tcpOffset();

	bFill.emit_p(PSTR(
	"HTTP/1.1 200 OK\r\n"
	"Content-type: text/html\r\n"
	"Connection: close\r\n"
	"\r\n"
	"<!DOCTYPE HTML>"
	"<html>"
       .....));

      return bFill.position();
}

From the loop() I make this call ether.httpServerReply(getPage());

My problem is that my page is too large to fit inside the buffer[1200], and I cant push my send and receive buffer above 1200, because then Im out of memory. Is there a way to send half the html code first, and then refill the buffer and send the rest?

You can ask in the forum of EtherCard: Ethercard: GitHub - njh/EtherCard: EtherCard is an IPv4 driver for the ENC28J60 chip, compatible with Arduino IDE

This could be an example of sending a large page: EtherCard/multipacket.ino at main · njh/EtherCard · GitHub
I think it is, but I don't understand that, it might have to do with an ACK ?

The EtherCard was created for small web pages.
Perhaps you can make a workaround by pushing text out of the webpage. For example with a javascript-file or css-file that are available online.

That example looks exactly like what I'm trying to achieve, can't wait till I can try it out. Thanks a lot!
Also thanks for directing me to that forum.

you might consider to use UIPEthernet which doesn't have a limitation in terms of packet-size.

Thanks I had the same problem and now it is solved using your example