Post Reply 
"204 No Content" at Picasa
Feb. 25, 2009, 07:21 PM
Post: #1
"204 No Content" at Picasa
Updated Mar 03

Below is a new header filter, which addresses odd page loading behavior on Picasa member pages.
It is a result of the discussion here:
http://prxbx.com/forums/showthread.php?t...2#pid11422

Code:
[HTTP headers]
In = TRUE
Out = FALSE
Key = "Content-Length: 2 Add if Needed    9.02.26 [gc sd] (d.2) (In)"
URL = "$RESP(1|204|304)(^$TST(keyword=*.a_headers.*))"
Match = "(^?)&$RESP((???)\0)$LOG(wRESP $DTM(c) : Content-Length 0 added: \0 response)($TST(volat=*.log:2*)$ADDLST(Log-Main,[$DTM(d T)]\tHDR_In \0 no CL\t\u Ref: $GET(hOrigRef))|)($TST(\0=[12]*)$TST(volat=*.log:[12]*)$ADDLST(Log-Rare,HDR_In \0 no CL\t\u Ref: $GET(hOrigRef))|)"
Replace = "0"

Although only seen at Picasa so far, it's a general issue about properly handling HTTP responses, and thus important.
(Quite similar to the "Content-Type: 5d Filter Redirects w/o Location" header filter, facing what is also a Google issue in the first place.)


Below is an updated header filter (skips 204 responses):
Code:
[HTTP headers]
In = TRUE
Out = FALSE
Key = "Content-Type: 5a Filter sel. Text Types     9.02.25 [sd] (d.r l.3) (In)"
URL = "^$RESP(204|3)|$TST(hRealCT=*)|$TST(keyword=*.(a_headers|a_type_t|i_level:[12]).*)|$TST(volat=*.post:1.*)|$TST(uExt=exe|gz)"
Match = "text/plain(^*; Prx(^Msg: Fixed acc. to Original))$SET(1=\0)|(^?)($TST(hOrigUA=*msie(^*opera)*)$SET(1=text/plain)|)$SET(2=: No Content-Type)&\0&($TST(volat=*.log:2*)$ADDLST(Log-Main,[$DTM(d T)]\tHDR_In CT_FilterTrue\t\1\2 \t\u)|)$LOG(CRESP $DTM(c) : Content-Type: Filter True: \1)"
Replace = "\1; PrxMsg: Filter Text\2$SET(hRealCT=filter)$FILTER(1)"


Both filters are flagged as "TEST", because they should be run by some people for some time, before going final.
Add Thank You Quote this message in a reply
Feb. 27, 2009, 12:32 AM
Post: #2
RE: "204 No Content" at Picasa
After testing for a bit, i've edited first filter in first post to also match other responses that mustn't have a content body. BTW, i'm just translating to Proxomitron code here, the idea is by Graycode. Wink
Add Thank You Quote this message in a reply
Feb. 27, 2009, 03:12 AM
Post: #3
RE: "204 No Content" at Picasa
(Feb. 27, 2009 12:32 AM)sidki3003 Wrote:  BTW, i'm just translating to Proxomitron code here, the idea is by Graycode. Wink

People who read that thread know the real story. You're the one who tagged the bug and figured out the best resolution. I just walked along to show where some walls were in that maze. Applause
Add Thank You Quote this message in a reply
Mar. 03, 2009, 10:03 PM
Post: #4
RE: "204 No Content" at Picasa
Removing "TEST" flags...
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: