Request-URI Too Large settings help

Hi
I am getting this error:

Request-URI Too Large
The requested URL’s length exceeds the capacity limit for this server.

request failed: URI too long

even with these settings…

client_header_buffer_size   8k;
large_client_header_buffers  4  8k;
fastcgi_buffers      32 4k;
fastcgi_buffer_size  4k;

this is the URL that is getting failed… please help!

/sendgiftpost?fb_sig_time=1208293221.2258&fb_sig_profile_update_time=1207788832&fb_sig_session_key=048f4642ea6addab5d718878-731179094&fb_sig_expires=0&fb_sig_api_key=4444e054156f1675f3ec4f2b057e60b5&fb_sig=b6e497fc52b2ac35ba1b79db773ede22&action=248&message=You+are+so+sexiii+cool&ids[]=7504&ids[]=205404&ids[]=207830&ids[]=210153&ids[]=217871&ids[]=1233489&ids[]=4800072&ids[]=4813012&ids[]=10400371&ids[]=25908450&ids[]=27100080&ids[]=81402914&ids[]=97801272&ids[]=500012114&ids[]=500654529&ids[]=501247646&ids[]=501302264&ids[]=501514892&ids[]=501532171&ids[]=501909885&ids[]=504598293&ids[]=507977119&ids[]=508249564&ids[]=508412416&ids[]=510292881&ids[]=511432311&ids[]=517398051&ids[]=517724771&ids[]=518032092&ids[]=518058988&ids[]=518105229&ids[]=518145825&ids[]=518214316&ids[]=518267627&ids[]=518509208&ids[]=518775748&ids[]=520933963&ids[]=522914553&ids[]=524081676&ids[]=525216748&ids[]=525910288&ids[]=526151258&ids[]=529078575&ids[]=530631041&ids[]=531489630&ids[]=535381526&ids[]=536278283&ids[]=537039578&ids[]=538595155&ids[]=538869831&ids[]=544694080&ids[]=545600244&ids[]=545805165&ids[]=548410311&ids[]=548432008&ids[]=548706211&ids[]=549103237&ids[]=551651328&ids[]=552817388&ids[]=553765448&ids[]=553911063&ids[]=556132546&ids[]=556386990&ids[]=559547992&ids[]=559984488&ids[]=560036250&ids[]=561744925&ids[]=561983049&ids[]=563683308&ids[]=564273805&ids[]=564307990&ids[]=564944192&ids[]=571951606&ids[]=574763275&ids[]=579291966&ids[]=582181896&ids[]=582333564&ids[]=584180829&ids[]=584627571&ids[]=587096889&ids[]=587534321&ids[]=590080256&ids[]=590082568&ids[]=594149314&ids[]=595650090&ids[]=597544222&ids[]=602492401&ids[]=603384563&ids[]=610690491&ids[]=612336040&ids[]=613022395&ids[]=613477208&ids[]=614781009&ids[]=623293173&ids[]=623445550&ids[]=623889391&ids[]=627449687&ids[]=628139132&ids[]=628985964&ids[]=632161653&ids[]=632515166&ids[]=633635645&ids[]=634143668&ids[]=634362444&ids[]=635245261&ids[]=635692039&ids[]=635775494&ids[]=641775229&ids[]=643033382&ids[]=643752957&ids[]=644584246&ids[]=648365959&ids[]=649251074&ids[]=650155760&ids[]=651694676&ids[]=653160915&ids[]=654893357&ids[]=661819497&ids[]=662288607&ids[]=665173653&ids[]=668118944&ids[]=668988067&ids[]=671256668&ids[]=672201174&ids[]=674483528&ids[]=677076743&ids[]=677659615&ids[]=683842717&ids[]=684296777&ids[]=684313830&ids[]=685244585&ids[]=690989510&ids[]=691487609&ids[]=692027190&ids[]=692546275&ids[]=693772766&ids[]=694486106&ids[]=695215118&ids[]=697113375&ids[]=699227220&ids[]=700574719&ids[]=704760394&ids[]=705155609&ids[]=705331850&ids[]=706869488&ids[]=708489866&ids[]=713956724&ids[]=715056883&ids[]=721727478&ids[]=724488964&ids[]=725404132&ids[]=727411869&ids[]=729122296&ids[]=731790568&ids[]=732580374&ids[]=736105254&ids[]=736513003&ids[]=742116768&ids[]=743900251&ids[]=744280000&ids[]=746683903&ids[]=747688272&ids[]=749419093&ids[]=755671498&ids[]=756409496&ids[]=757734323&ids[]=759233189&ids[]=761015773&ids[]=763191648&ids[]=770788381&ids[]=771475318&ids[]=773915439&ids[]=776561667&ids[]=779310122&ids[]=787550650&ids[]=791393025&ids[]=795089324&ids[]=795089742&ids[]=798905701&ids[]=802143056&ids[]=817239011&ids[]=817495260&ids[]=820306701&ids[]=821445430&ids[]=830693483&ids[]=833715106&ids[]=847025351&ids[]=859800025&ids[]=1001371028&ids[]=1001972317&ids[]=1006754829&ids[]=1009685476&ids[]=1014369685&ids[]=1017399534&ids[]=1022347618&ids[]=1029633238&ids[]=1032628141&ids[]=1034536679&ids[]=1035398822&ids[]=1037136980&ids[]=1038316160&ids[]=1041210612&ids[]=1044512876&ids[]=1047874273&ids[]=1053835789&ids[]=1055259125&ids[]=1061981401&ids[]=1070257977&ids[]=1071566157&ids[]=1072681245&ids[]=1076507448&ids[]=1076883013&ids[]=1082831795&ids[]=1102111029&ids[]=1108596740&ids[]=1108947324&ids[]=1111878684&ids[]=1112295142&ids[]=1118384347&ids[]=1125954131&ids[]=1130586823&ids[]=1132664977&ids[]=1140932450&ids[]=1141237652&ids[]=1145671441&ids[]=1149171989&ids[]=1172014547&ids[]=1173130637&ids[]=1173540114&ids[]=1175993296&ids[]=1184746907&ids[]=1188536880&ids[]=1193292650&ids[]=1195471231&ids[]=1206367584&ids[]=1211285206&ids[]=1214921051&ids[]=1276770035&ids[]=1659090168&ids[]=207830&ids[]=210153&ids[]=217871&ids[]=1233489&ids[]=4800072&ids[]=25908450&ids[]=81402914&ids[]=500012114&ids[]=500654529&ids[]=501247646&ids[]=501302264&ids[]=501532171&ids[]=501909885&ids[]=504598293&ids[]=508412416&ids[]=517724771&ids[]=518058988&ids[]=518105229&ids[]=518214316&ids[]=518267627&ids[]=518775748&ids[]=522914553&ids[]=524081676&ids[]=525910288&ids[]=526151258&ids[]=536278283&ids[]=538869831&ids[]=544694080&ids[]=545600244&ids[]=548410311&ids[]=548432008&ids[]=549103237&ids[]=552817388&ids[]=553765448&ids[]=553911063&ids[]=556386990&ids[]=559547992&ids[]=559984488&ids[]=563683308&ids[]=564273805&ids[]=564944192&ids[]=579291966&ids[]=582181896&ids[]=584180829&ids[]=584627571&ids[]=587096889&ids[]=587534321&ids[]=595650090&ids[]=597544222&ids[]=610690491&ids[]=612336040&ids[]=613477208&ids[]=614781009&ids[]=623293173&ids[]=623445550&ids[]=628985964&ids[]=632161653&ids[]=632515166&ids[]=633635645&ids[]=635692039&ids[]=635775494&ids[]=641775229&ids[]=643752957&ids[]=648365959&ids[]=651694676&ids[]=653160915&ids[]=654893357&ids[]=662288607&ids[]=668118944&ids[]=671256668&ids[]=672201174&ids[]=674483528&ids[]=677659615&ids[]=683842717&ids[]=684296777&ids[]=685244585&ids[]=692027190&ids[]=694486106&ids[]=695215118&ids[]=697113375&ids[]=699227220&ids[]=705155609&ids[]=713956724&ids[]=721727478&ids[]=724488964&ids[]=725404132&ids[]=731790568&ids[]=736513003&ids[]=742116768&ids[]=743900251&ids[]=755671498&ids[]=756409496&ids[]=757734323&ids[]=771475318&ids[]=773915439&ids[]=776561667&ids[]=779310122&ids[]=787550650&ids[]=791393025&ids[]=795089324&ids[]=798905701&ids[]=821445430&ids[]=830693483&ids[]=833715106&ids[]=1014369685&ids[]=1017399534&ids[]=1038316160&ids[]=1041210612&ids[]=1044512876&ids[]=1053835789&ids[]=1061981401&ids[]=1071566157&ids[]=1072681245&ids[]=1108596740&ids[]=1118384347&ids[]=1173540114&ids[]=1175993296&ids[]=1184746907&ids[]=1193292650&ids[]=1206367584&ids[]=1214921051&ids[]=1276770035&ids[]=1659090168&ids[]=10400371&ids[]=27100080&ids[]=97801272&ids[]=508249564&ids[]=510292881&ids[]=511432311&ids[]=517398051&ids[]=518032092&ids[]=518145825&ids[]=520933963&ids[]=529078575&ids[]=530631041&ids[]=531489630&ids[]=535381526&ids[]=538595155&ids[]=545805165&ids[]=548706211&ids[]=556132546&ids[]=560036250&ids[]=561744925&ids[]=561983049&ids[]=571951606&ids[]=574763275&ids[]=582333564&ids[]=590082568&ids[]=594149314&ids[]=627449687&ids[]=643033382&ids[]=649251074&ids[]=650155760&ids[]=661819497&ids[]=665173653&ids[]=668988067&ids[]=684313830&ids[]=690989510&ids[]=692546275&ids[]=700574719&ids[]=704760394&ids[]=705331850&ids[]=706869488&ids[]=715056883&ids[]=727411869&ids[]=732580374&ids[]=736105254&ids[]=744280000&ids[]=747688272&ids[]=749419093&ids[]=759233189&ids[]=761015773&ids[]=763191648&ids[]=770788381&ids[]=820306701&ids[]=859800025&ids[]=1001371028&ids[]=1001972317&ids[]=1029633238&ids[]=1032628141&ids[]=1035398822&ids[]=1037136980&ids[]=1076507448&ids[]=1102111029&ids[]=1111878684&ids[]=1140932450&ids[]=1145671441&ids[]=1195471231
thanks

Hello!

On Tue, Apr 15, 2008 at 02:32:58PM -0700, [email protected] wrote:

client_header_buffer_size 8k;
large_client_header_buffers 4 8k;
fastcgi_buffers 32 4k;
fastcgi_buffer_size 4k;

this is the URL that is getting failed… please help!

[…skipped awfull really long uri, which probably will be just
thrown away by some servers and truncated by others…]

Have you tried using POST method instead? Looks like RFC 2616
mentions your case explicitly:

% 10.4.15 414 Request-URI Too Long
%
% The server is refusing to service the request because the
Request-URI
% is longer than the server is willing to interpret. This rare
% condition is only likely to occur when a client has improperly
% converted a POST request to a GET request with long query
% information, when the client has descended into a URI “black hole”
of
% redirection (e.g., a redirected URI prefix that points to a suffix
of
% itself), or when the server is under attack by a client attempting
to
% exploit security holes present in some servers using fixed-length
% buffers for reading or manipulating the Request-URI.

Note the “has improperly converted …” part.

Maxim D.

On Tue, Apr 15, 2008 at 3:01 PM, Maxim D. [email protected]
wrote:

large_client_header_buffers 4 8k;
your case explicitly:
it is POST method only… not GET…

On Wed, Apr 16, 2008 at 7:30 AM, [email protected] [email protected]
wrote:

On Tue, Apr 15, 2008 at 3:01 PM, Maxim D. [email protected] wrote:

Have you tried using POST method instead? Looks like RFC 2616 mentions
your case explicitly:

it is POST method only… not GET…

Also, try putting the query string into the request body…

On Tue, Apr 15, 2008 at 02:32:58PM -0700, [email protected] wrote:

large_client_header_buffers  4  8k;
fastcgi_buffers      32 4k;
fastcgi_buffer_size  4k;

this is the URL that is getting failed… please help!

/sendgiftpost?fb_sig_time=1208293221.2258&

Do you show complete URL ? It takes about 7200 bytes, so 8k
client_header_buffer_size should be enough for it.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs