Forum Discussion

Anirban_Bhattac's avatar
Anirban_Bhattac
Icon for Nimbostratus rankNimbostratus
Dec 15, 2016

HttpClientErrorException: HTTP headers too long

I am using RestTemplate to create a virtual server. My request entity for the post call is as below:

I have change the Auth Token but the length is same. Also I have change the destination IP and port.

However I am getting below HttpClientErrorException:

HttpClientErrorException Occured: {"code":400,"message":"HTTP headers too long!","errorStack":[]}

 

Can anyone please help me out how can I resolve the issue? Thanks in advance.

1 Reply

  • The authorization parameters in JSON seems to be incorrect. I used below using curl and that works for me.

     

    curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic c3VraGppdHM6UHJvekE/Lj9zaQ==" -H "Cache-Control: no-cache" -d '{"name":"my_VIP_time_1","destination":"233.179.1.1:80","mask":"255.255.255.255","ipProtocol":"tcp"}' -sk ";