Forum Discussion
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
- Sukhjit_Singh_1
Nimbostratus
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 ";
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com