U
U
urajo2019-12-23 11:17:24
JavaScript
urajo, 2019-12-23 11:17:24

How to pass a big title via ajax?

Parsed a table from a page like this

var tab = $("#otd-table").html();

I'm trying to send to the server
$.ajax({
          type: 'GET',
          utl: '/print',
          data: {
            tab: tab
          },
          success:function(html){
            $(location).attr('href','/print');
          }
        });

Writes an error
431 (Request Header Fields Too Large)

The table is large, how can I transfer it with tags to the server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2019-12-23
@firedragon

Big data is sent via post, so change the backend and your script on the front

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question