# Nginx return Error 400 on long cookies,

**URL:** <https://www.ruby-forum.com/t/nginx-return-error-400-on-long-cookies/215186>\
**Category:** NGINX\
**Created:** [December 26, 2011, 3:44am UTC](https://www.ruby-forum.com/t/nginx-return-error-400-on-long-cookies/215186 "2011-12-26T03:44:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [December 26, 2011, 3:44am UTC](https://www.ruby-forum.com/t/nginx-return-error-400-on-long-cookies/215186/1 "2011-12-26T03:44:01Z")

</div>

i tried to install google friend connect on my forum, and i can’t get it  
worked.  
when i checked with firebug, it shows:

"“NetworkError: 400 Bad Request -  
[http://mc8tdi0ripmbpds25eboaupdulritrp6-a-fc-opensocial.googleusercontent.com/ps/ifr?container=friendconnect&mid=0&nocache=0&view=profile&parent=http%3A%2F%2Fwww.ceriwis.us%2Fhanyates%2Fvbnexus%2Fgoogle%2F&url=http%3A%2F%2Fwww.google.com%2Ffriendconnect%2Fgadgets%2Fosapi-0.8.xml&communityId=11096874856524462449&caller=http%3A%2F%2Fwww.ceriwis.us%2Fhanyates%2Findex.php&rpctoken=273046583](http://mc8tdi0ripmbpds25eboaupdulritrp6-a-fc-opensocial.googleusercontent.com/ps/ifr?container=friendconnect&mid=0&nocache=0&view=profile&parent=http%3A%2F%2Fwww.ceriwis.us%2Fhanyates%2Fvbnexus%2Fgoogle%2F&url=http%3A%2F%2Fwww.google.com%2Ffriendconnect%2Fgadgets%2Fosapi-0.8.xml&communityId=11096874856524462449&caller=http%3A%2F%2Fwww.ceriwis.us%2Fhanyates%2Findex.php&rpctoken=273046583)"”

but when i installed the plugin on apache it works… anybody knows what  
is the problem above ?  
im googling it and find “[Re: error 400](http://forum.nginx.org/read.php?2,61022,61178)”

and i’ve added “large\_client\_header\_buffers 4 8k;” to the config files  
but it still show the same error…

maybe people here knows what really happen and how to solve it.  
any help will be appreciated. Thanks

Posted at Nginx Forum:

> **[Nginx return Error 400 on long cookies,](https://forum.nginx.org/read.php?2,220475,220475#msg-220475)**
>
> i tried to install google friend connect on my forum, and i can't get it worked. when i checked with firebug, it shows: ""NetworkError: 400 Bad Request -...

---

<div class="post-metadata">

**Author:** ![escavern](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/5f9b8f/32.png) [@escavern](https://www.ruby-forum.com/u/escavern)\
**Post date:** [December 27, 2011, 4:58pm UTC](https://www.ruby-forum.com/t/nginx-return-error-400-on-long-cookies/215186/2 "2011-12-27T16:58:24Z")

</div>

helo i really need help here ☹

Posted at Nginx Forum:

> **[Re: Nginx return Error 400 on long cookies,](https://forum.nginx.org/read.php?2,220475,220553#msg-220553)**
>
> i tried to install google friend connect on my forum, and i can't get it worked. when i checked with firebug, it shows: ""NetworkError: 400 Bad Request -...

---

<div class="post-metadata">

**Author:** ![escavern](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/5f9b8f/32.png) [@escavern](https://www.ruby-forum.com/u/escavern)\
**Post date:** [December 27, 2011, 5:03pm UTC](https://www.ruby-forum.com/t/nginx-return-error-400-on-long-cookies/215186/3 "2011-12-27T17:03:58Z")

</div>

Post the whole HTTP request with all headers.

Also read  
[http://nginx.org/en/docs/http/ngx\_http\_core\_module.html#large\_client\_header\_buffers](http://nginx.org/en/docs/http/ngx_http_core_module.html#large_client_header_buffers)
