R: R: R: Setting No Cache in WAP Push
You are rigth. I read better the specs and now I am convinced the following instructions should be applied: 8.4.1.2 Field values The syntax of encoded field values is defined by the field name. Well-known field values MUST be encoded using the compact binary formats defined by the header syntax below 8.4.2 Header syntax ...The notation Octet N is used to represent a single octet with the value N in the decimal system. The notation Any octet M-N is used for a single octet with the value in the range from M to N, inclusive. Bye, Claudio -Messaggio originale- Da: Aarno Syvänen [mailto:[EMAIL PROTECTED]] Inviato: giovedì 5 dicembre 2002 10.13 A: Claudio Montanari Cc: [EMAIL PROTECTED] Oggetto: Re: R: R: Setting No Cache in WAP Push Tokenized header value is one octet, octet 128. You just add value after tokenized header name. aarno On Wednesday, December 4, 2002, at 12:01 PM, Claudio Montanari wrote: Well, I spent a while to decipher the standard and I am quite sure the no-cache value is a long integer. I wish to share with you my interpretation of the spec WAP-230-WSP-20010705-a: According to chap.8.4.2.1 Basic Rules short integers are in the range 0-127 and should be encoded 1xxx. According to chap. 8.4.2.15 Cache-Control Field the no-cache value is Octet 128, expecting to be a long integer because out of the 0-127 range. As a consequence the Long Integer = Short-Length Multi-octet-integer -- 8180 But this is just my interpretation. Please, let me know where I am wrong and thank you for your comment. Bye, Claudio, -Messaggio originale- Da: Aarno Syvänen [mailto:[EMAIL PROTECTED]] Inviato: mercoledì 4 dicembre 2002 11.30 A: Claudio Montanari Cc: 'Chris Wilson'; [EMAIL PROTECTED] Oggetto: Re: R: Setting No Cache in WAP Push Yeah, expect no-cache is a short integer, so value-length is not needed. Aarno On Wednesday, December 4, 2002, at 11:00 AM, Claudio Montanari wrote: In my understanding you should add a Cache-Contol http header to the push message header. According to WAP-230-WSP 01Transaction ID (Push ID) 06PDU Type (Push PDU) 18Header Length (24 bytes) AEContent Type=application/vnd.wap.sic (0x80 | 0x2E) 88Cache-Control= (encoding v.1.1 table 39) 81Next is 1-octet Integer Value 127 80No-Cache (octet 128) (chap. 8.4.2.15) 96Host (0x80 | 0x16), WAP - 230, Appendix A, table 39 (wsp) 6C 6F 63 61 6C 68 6F 73 74 3A 38 30 38 30 localhost:8080 00 8DContent-Length (wsp, table 39) DD221 bytes B4Push-Flag (wsp, table 39) 80no flags set (wsp, chapter 8.4.2.59 chapter 8.4.2.1; SPEC-PushOTA-19991108) As an alternative, could be easier to control the phone cache by the WML deck you send with the Service Indication. If you want to be sure the page is newly loaded every time it is displayed, you should use the meta tags meta http-equiv=Cache-control content=no-cache forua=true/ in the head section of the WML deck file. In this case, you would take into account the different behavior of the micro browser in the mobile phone in respect of the cache management. I send this reply to the list just to have comments about it. Bye, Claudio. -Messaggio originale- Da: Chris Wilson [mailto:[EMAIL PROTECTED]] Inviato: martedì 3 dicembre 2002 18.34 A: [EMAIL PROTECTED] Oggetto: Setting No Cache in WAP Push Hi, I saw a post you had shown below. I am interested in what would have to be added to the message described below to set NO-CACHE in the HTTP header. I looked in the document WAP-230-WSP-20010705-a.pdf Page 86 but I was unable to determining how to fill in the CACHE fields. Basically the problem I am running into is when a phone gets my WAP push it will execute the link I send the first time. If the user trys to execute that link again it uses it's local cache instead of requesting from the server again. Here is an example of what I am trying to encode: 0x00,// Transaction ID (Push ID) 0x06, // PDU Type (Push PDU) Apndx A Table 34 0x01, // Header Length (not sure why this is one) (byte)0xAE, // Content Type=application/vnd.wap.sic (0x80 | 0x2E) 0x02, // Version number - WBXML version 1.2 0x05, // SI 1.0 Public Identifier 0x6A, // Charset=UTF-8 (MIBEnum 106) WAP-230 table 42 0x00, // String table length 0x45, // SI element start, with content 0x05 | 0x40 (byte)0xC6, // indication element start, with content and attributes 0x06 | 0x40 0x0C, // (0C http://) 0x03 // next is an ASCII string 0x00 terminated ~ URL LINK String Description of URL I appreciate any enlightenment you can send my way. -- Chris http://www.mail
Re: R: Setting No Cache in WAP Push
Yeah, expect no-cache is a short integer, so value-length is not needed. Aarno On Wednesday, December 4, 2002, at 11:00 AM, Claudio Montanari wrote: In my understanding you should add a Cache-Contol http header to the push message header. According to "WAP-230-WSP" 01Transaction ID (Push ID) 06PDU Type (Push PDU) 18Header Length (24 bytes) AEContent Type=application/vnd.wap.sic (0x80 | 0x2E) 88 Cache-Control= (encoding v.1.1 table 39) 81 Next is 1-octet Integer Value > 127 80 No-Cache (octet 128) (chap. 8.4.2.15) 96Host (0x80 | 0x16), WAP - 230, Appendix A, table 39 (wsp) 6C 6F 63 61 6C 68 6F 73 74 3A 38 30 38 30 localhost:8080 00 8DContent-Length (wsp, table 39) DD221 bytes B4Push-Flag (wsp, table 39) 80no flags set (wsp, chapter 8.4.2.59 chapter 8.4.2.1; SPEC-PushOTA-19991108) As an alternative, could be easier to control the phone cache by the WML deck you send with the Service Indication. If you want to be sure the page is newly loaded every time it is displayed, you should use the meta tags meta http-equiv="Cache-control" content="no-cache" forua="true"/> in the head> section of the WML deck file. In this case, you would take into account the different behavior of the micro browser in the mobile phone in respect of the cache management. I send this reply to the list just to have comments about it. Bye, Claudio. -Messaggio originale- Da: Chris Wilson [mailto:[EMAIL PROTECTED]] Inviato: martedì 3 dicembre 2002 18.34 A: [EMAIL PROTECTED] Oggetto: Setting No Cache in WAP Push Hi, I saw a post you had shown below. I am interested in what would have to be added to the message described below to set NO-CACHE in the HTTP header. I looked in the document "WAP-230-WSP-20010705-a.pdf Page 86" but I was unable to determining how to fill in the CACHE fields. Basically the problem I am running into is when a phone gets my WAP push it will execute the link I send the first time. If the user trys to execute that link again it uses it's local cache instead of requesting from the server again. Here is an example of what I am trying to encode: 0x00, // Transaction ID (Push ID) 0x06, // PDU Type (Push PDU) Apndx A Table 34 0x01, // Header Length (not sure why this is one) (byte)0xAE, // Content Type=application/vnd.wap.sic (0x80 | 0x2E) 0x02, // Version number - WBXML version 1.2> 0x05, // SI 1.0 Public Identifier> 0x6A, // Charset=UTF-8 (MIBEnum 106)> WAP-230 table 42 0x00, // String table length> 0x45, // SI element start, with content 0x05 | 0x40> (byte)0xC6, // indication element start, with content and attributes 0x06 | 0x40> 0x0C, // (0C http://) 0x03 // next is an ASCII string 0x00 terminated ~ URL LINK> String Description of URL> I appreciate any enlightenment you can send my way. -- Chris http://www.mail-archive.com/users@kannel.3glab.org/msg02194.html Claudio Montanari TAI S.r.l. Viale Gramsci 12 - 56125 - Pisa Via Pazzagli 2 - 50141 - Firenze Tel: +39 050 503222 Fax. +39 050 24421 E-mail: [EMAIL PROTECTED] http://www.tai.it 00 Default SMSC 51 UDHI and SUBMIT 00 MR 0C Destination number length (12 digits) 91 Destination number format (international) Destination number () 00 Protocol ID 04 Data Coding Schema (DCS 8-bit encoded) A7 Validity Period (24 h) 7C User Data Length (124 bytes) 06 User Data Header Length (6 bytes) 05 UDH Item Element id (Port Numbers) 04 UDH IE length (4 bytes) 0B84 destination port number 23F0 origin port number 01 Transaction ID (Push ID) 06 PDU Type (Push PDU) 15 Header Length (21 bytes) AE Content Type=application/vnd.wap.sic (0x80 | 0x2E) 96 Host, WAP - 230, Appendix A, table 39 (wsp) 6C 6F 63 61 6C 68 6F 73 74 3A 38 30 38 30 localhost:8080 00 End of the text string (wsp, chapter 8.4.2.29 chapter 8.4.2.1) 8D Content-Length (wsp, table 39) DD in hex, 221 bytes (wsp, chapter 8.4.2.20 chapter 8.4.2.1) B4 Push-Flag (wsp, table 39) 80 no flags set (wsp, chapter 8.4.2.59 chapter 8.4.2.1; SPEC-PushOTA-19991108. chapter 9.1.3) 02 Version number - WBXML version 1.2> 05 SI 1.0 Public Identifier> 6A Charset=UTF-8 (MIBEnum 106)> 00 String table length> 45 SI element start, with content 0x05 | 0x40> C6 indication element start, with content and attributes 0x06 | 0x40 | 0x80> 0C http:// 03 (next is an ASCII string 00 terminated) 77 61 70 2E 74 61 69 2E 69 74 wap.tai.it 00 11 si-id=> 03 (next is an ASCII string 00 terminated) 39 32 40 74 61 69 2E 69 74 [EMAIL PROTECTED] 00 08 action=signal-high> 0A created=> C3 OPAQUE data follows> 07 Length field (7 bytes)> 19990625152315 1999-06-25 15:23:15 10 si-expires=> C3
Re: R: R: Setting No Cache in WAP Push
Tokenized header value is one octet, octet 128>. You just add value after tokenized header name. aarno On Wednesday, December 4, 2002, at 12:01 PM, Claudio Montanari wrote: Well, I spent a while to "decipher" the standard and I am "quite" sure the no-cache value is a long integer. I wish to share with you my interpretation of the spec WAP-230-WSP-20010705-a: According to chap.8.4.2.1 "Basic Rules" short integers are in the range 0-127 and should be encoded "1xxx". According to chap. 8.4.2.15 "Cache-Control Field" the no-cache value is Octet 128>, expecting to be a long integer because out of the 0-127 range. As a consequence the Long Integer = Short-Length Multi-octet-integer --> 8180 But this is just my interpretation. Please, let me know where I am wrong and thank you for your comment. Bye, Claudio, -Messaggio originale- Da: Aarno Syvänen [mailto:[EMAIL PROTECTED]] Inviato: mercoledì 4 dicembre 2002 11.30 A: Claudio Montanari Cc: 'Chris Wilson'; [EMAIL PROTECTED] Oggetto: Re: R: Setting No Cache in WAP Push Yeah, expect no-cache is a short integer, so value-length is not needed. Aarno On Wednesday, December 4, 2002, at 11:00 AM, Claudio Montanari wrote: In my understanding you should add a Cache-Contol http header to the push message header. According to "WAP-230-WSP" 01Transaction ID (Push ID) 06PDU Type (Push PDU) 18Header Length (24 bytes) AEContent Type=application/vnd.wap.sic (0x80 | 0x2E) 88 Cache-Control= (encoding v.1.1 table 39) 81 Next is 1-octet Integer Value > 127 80 No-Cache (octet 128) (chap. 8.4.2.15) 96Host (0x80 | 0x16), WAP - 230, Appendix A, table 39 (wsp) 6C 6F 63 61 6C 68 6F 73 74 3A 38 30 38 30 localhost:8080 00 8DContent-Length (wsp, table 39) DD221 bytes B4Push-Flag (wsp, table 39) 80no flags set (wsp, chapter 8.4.2.59 chapter 8.4.2.1; SPEC-PushOTA-19991108) As an alternative, could be easier to control the phone cache by the WML deck you send with the Service Indication. If you want to be sure the page is newly loaded every time it is displayed, you should use the meta tags meta http-equiv="Cache-control" content="no-cache" forua="true"/> in the head> section of the WML deck file. In this case, you would take into account the different behavior of the micro browser in the mobile phone in respect of the cache management. I send this reply to the list just to have comments about it. Bye, Claudio. -Messaggio originale- Da: Chris Wilson [mailto:[EMAIL PROTECTED]] Inviato: martedì 3 dicembre 2002 18.34 A: [EMAIL PROTECTED] Oggetto: Setting No Cache in WAP Push Hi, I saw a post you had shown below. I am interested in what would have to be added to the message described below to set NO-CACHE in the HTTP header. I looked in the document "WAP-230-WSP-20010705-a.pdf Page 86" but I was unable to determining how to fill in the CACHE fields. Basically the problem I am running into is when a phone gets my WAP push it will execute the link I send the first time. If the user trys to execute that link again it uses it's local cache instead of requesting from the server again. Here is an example of what I am trying to encode: 0x00, // Transaction ID (Push ID) 0x06, // PDU Type (Push PDU) Apndx A Table 34 0x01, // Header Length (not sure why this is one) (byte)0xAE, // Content Type=application/vnd.wap.sic (0x80 | 0x2E) 0x02, // Version number - WBXML version 1.2> 0x05, // SI 1.0 Public Identifier> 0x6A, // Charset=UTF-8 (MIBEnum 106)> WAP-230 table 42 0x00, // String table length> 0x45, // SI element start, with content 0x05 | 0x40> (byte)0xC6, // indication element start, with content and attributes 0x06 | 0x40> 0x0C, // (0C http://) 0x03 // next is an ASCII string 0x00 terminated ~ URL LINK> String Description of URL> I appreciate any enlightenment you can send my way. -- Chris http://www.mail-archive.com/users@kannel.3glab.org/msg02194.html Claudio Montanari TAI S.r.l. Viale Gramsci 12 - 56125 - Pisa Via Pazzagli 2 - 50141 - Firenze Tel: +39 050 503222 Fax. +39 050 24421 E-mail: [EMAIL PROTECTED] http://www.tai.it 00 Default SMSC 51 UDHI and SUBMIT 00 MR 0C Destination number length (12 digits) 91 Destination number format (international) Destination number () 00 Protocol ID 04 Data Coding Schema (DCS 8-bit encoded) A7 Validity Period (24 h) 7C User Data Length (124 bytes) 06 User Data Header Length (6 bytes) 05 UDH Item Element id (Port
R: Setting No Cache in WAP Push
Title: Messaggio In my understanding you should adda Cache-Contol http headerto the push message header. According to "WAP-230-WSP" 01Transaction ID (Push ID)06PDU Type (Push PDU)18Header Length (24 bytes)AEContent Type=application/vnd.wap.sic (0x80 | 0x2E) 88 Cache-Control= (encoding v.1.1 table 39) 81 Next is 1-octet Integer Value 127 80 No-Cache (octet 128) (chap. 8.4.2.15)96Host (0x80 | 0x16), WAP - 230, Appendix A, table 39 (wsp)6C 6F 63 61 6C 68 6F 73 74 3A 38 30 38 30 localhost:8080008DContent-Length (wsp, table 39)DD221 bytesB4Push-Flag (wsp, table 39)80no flags set (wsp, chapter 8.4.2.59 chapter 8.4.2.1; SPEC-PushOTA-19991108) As an alternative, could be easier to control the phone cacheby the WML deck you send with the Service Indication. If you want to be sure the page is newly loaded every time it is displayed, you should use the meta tags meta http-equiv="Cache-control" content="no-cache" forua="true"/ in the head sectionof the WML deck file. In this case, you wouldtake into account the different behavior of the micro browser in the mobile phone in respect of the cache management. I send this reply to the list just to have comments about it. Bye, Claudio. -Messaggio originale-Da: Chris Wilson [mailto:[EMAIL PROTECTED]] Inviato: martedì 3 dicembre 2002 18.34A: [EMAIL PROTECTED]Oggetto: Setting No Cache in WAP Push Hi, I saw a post you had shown below. I am interested in what would have to be added to the message described below to set NO-CACHE in the HTTP header. I looked in the document "WAP-230-WSP-20010705-a.pdf Page 86" but I was unable to determining how to fill in the CACHE fields. Basically the problem I am running into is when a phone gets my WAP push it will execute the link I send the first time. If the user trys to execute that link again it uses it's local cache instead of requesting from the server again. Here is an example of what I am trying to encode: 0x00, // Transaction ID (Push ID) 0x06, // PDU Type (Push PDU) Apndx A Table 34 0x01, // Header Length (not sure why this is one) (byte)0xAE, // Content Type=application/vnd.wap.sic (0x80 | 0x2E) 0x02, // Version number - WBXML version 1.2 0x05, // SI 1.0 Public Identifier 0x6A, // Charset=UTF-8 (MIBEnum 106) WAP-230 table 42 0x00, // String table length 0x45, // SI element start, with content 0x05 | 0x40 (byte)0xC6,// indication element start, with content and attributes 0x06 | 0x40 0x0C, // (0C http://) 0x03 // next is an ASCII string 0x00 terminated ~ URL LINK String Description of URL I appreciate any enlightenment you can send my way. -- Chris http://www.mail-archive.com/users@kannel.3glab.org/msg02194.html Claudio MontanariTAI S.r.l.Viale Gramsci 12 - 56125 - PisaVia Pazzagli 2 - 50141 - FirenzeTel: +39 050 503222Fax. +39 050 24421E-mail: c.montanari@tai.ithttp://www.tai.it00 Default SMSC51 UDHI and SUBMIT00 MR0C Destination number length (12 digits)91 Destination number format (international) Destination number ()00 Protocol ID04 Data Coding Schema (DCS 8-bit encoded)A7 Validity Period (24 h)7C User Data Length (124 bytes)06 User Data Header Length (6 bytes)05 UDH Item Element id (Port Numbers)04 UDH IE length (4 bytes)0B84 destination port number23F0 origin port number01 Transaction ID (Push ID)06 PDU Type (Push PDU)15 Header Length (21 bytes)AE Content Type=application/vnd.wap.sic (0x80 | 0x2E)96 Host, WAP - 230, Appendix A, table 39 (wsp)6C 6F 63 61 6C 68 6F 73 74 3A 38 30 38 30 localhost:808000 End of the text string (wsp, chapter 8.4.2.29 chapter8.4.2.1)8D Content-Length (wsp, table 39)DD in hex, 221 bytes (wsp, chapter 8.4.2.20 chapter8.4.2.1)B4 Push-Flag (wsp, table 39)80 no flags set (wsp, chapter 8.4.2.59 chapter8.4.2.1; SPEC-PushOTA-19991108.chapter 9.1.3)02 Version number - WBXML version 1.205 SI 1.0 Public Identifier6A Charset=UTF-8 (MIBEnum 106)00 String table length45 SI element start, with content 0x05 | 0x40C6 indication element start, with content and attributes 0x06 | 0x40| 0x800C http://03 (next is an ASCII string 00 terminated)77 61 70 2E 74 61 69 2E 69 74 wap.tai.it0011 si-id=03 (next is an ASCII string 00 terminated)39 32 40 74 61 69 2E 69 74 92@tai.it0008 action="">0A created=C3 OPAQUE data follows07 Length field (7 bytes)19990625152315 1999-06-25 15:23:1510 si-expires=C3 OPAQUE data follows04 Length field (4 bytes), final 0s are omitted20030630 2003-06-30 00:00:0001 indication element attributes end03 (next is an ASCII string 00 terminated, the SI content)56 75 6F 69 20 76 65 64 65 72 65 20 6C 65 20 4D 61 70 70 65 3F Vuoivedere le Mappe?20 4F 70 7A 69 6F 6E 69 20 2D 20 53
R: R: Setting No Cache in WAP Push
Title: Messaggio Well, I spent a while to "decipher" the standard and I am "quite" sure the no-cache value is a long integer. I wish to share with you my interpretation of the spec WAP-230-WSP-20010705-a: According to chap.8.4.2.1 "Basic Rules" short integers are in the range 0-127 and should be encoded "1xxx". According to chap. 8.4.2.15 "Cache-Control Field" the no-cache value is Octet 128, expecting to be a long integer because out of the 0-127 range. As a consequence the Long Integer = Short-Length Multi-octet-integer -- 8180 Butthis is just my interpretation. Please, let me know where I am wrong and thank you for your comment. Bye, Claudio, -Messaggio originale-Da: Aarno Syvänen [mailto:[EMAIL PROTECTED]] Inviato: mercoledì 4 dicembre 2002 11.30A: Claudio MontanariCc: 'Chris Wilson'; [EMAIL PROTECTED]Oggetto: Re: R: Setting No Cache in WAP PushYeah, expect no-cache is a short integer, so value-length is not needed.AarnoOn Wednesday, December 4, 2002, at 11:00 AM, Claudio Montanari wrote: In my understanding you should adda Cache-Contol http headerto the push message header.According to "WAP-230-WSP"01Transaction ID (Push ID)06PDU Type (Push PDU)18Header Length (24 bytes)AEContent Type=application/vnd.wap.sic (0x80 | 0x2E) 88 Cache-Control= (encoding v.1.1 table 39) 81 Next is 1-octet Integer Value 127 80 No-Cache (octet 128) (chap. 8.4.2.15)96Host (0x80 | 0x16), WAP - 230, Appendix A, table 39 (wsp)6C 6F 63 61 6C 68 6F 73 74 3A 38 30 38 30 localhost:8080008DContent-Length (wsp, table 39)DD221 bytesB4Push-Flag (wsp, table 39)80no flags set (wsp, chapter 8.4.2.59 chapter 8.4.2.1; SPEC-PushOTA-19991108)As an alternative, could be easier to control the phone cacheby the WML deck you send with the Service Indication.If you want to be sure the page is newly loaded every time it is displayed, you should use the meta tagsmeta http-equiv="Cache-control" content="no-cache" forua="true"/in the head sectionof the WML deck file.In this case, you wouldtake into account the different behavior of the micro browser in the mobile phone in respect of the cache management.I send this reply to the list just to have comments about it.Bye, Claudio.-Messaggio originale-Da: Chris Wilson [mailto:[EMAIL PROTECTED]]Inviato: martedì 3 dicembre 2002 18.34A: [EMAIL PROTECTED]Oggetto: Setting No Cache in WAP PushHi, I saw a post you had shown below.I am interested in what would have to be added to the message described below to set NO-CACHE in the HTTP header. I looked in the document "WAP-230-WSP-20010705-a.pdf Page 86" but I was unable to determining how to fill in the CACHE fields. Basically the problem I am running into is when a phone gets my WAP push it will execute the link I send the first time. If the user trys to execute that link again it uses it's local cache instead of requesting from the server again.Here is an example of what I am trying to encode: 0x00, // Transaction ID (Push ID) 0x06, // PDU Type (Push PDU) Apndx A Table 34 0x01, // Header Length (not sure why this is one) (byte)0xAE, // Content Type=application/vnd.wap.sic (0x80 | 0x2E) 0x02, // Version number - WBXML version 1.2 0x05, // SI 1.0 Public Identifier 0x6A, // Charset=UTF-8 (MIBEnum 106) WAP-230 table 42 0x00, // String table length 0x45, // SI element start, with content 0x05 | 0x40 (byte)0xC6,// indication element start, with content and attributes 0x06 | 0x40 0x0C, // (0C http://) 0x03 // next is an ASCII string 0x00 terminated ~ URL LINK String Description of URLI appreciate any enlightenment you can send my way.-- Chrishttp://www.mail-archive.com/users@kannel.3glab.org/msg02194.htmlClaudio MontanariTAI S.r.l.Viale Gramsci 12 - 56125 - PisaVia Pazzagli 2 - 50141 - FirenzeTel: +39 050 503222Fax. +39 050 24421E-mail: [EMAIL PROTECTED]http://www.tai.it00 Default SMSC51 UDHI and SUBMIT00 MR0C Destination number length (12 digits)91 Destination number format (international) Destination number ()00 Protocol ID04 Data Coding Schema (DCS 8-bit encoded)A7 Validity Period (24 h)7C User Data Length (124 bytes)06 User Data Header Length (6 bytes)05 UDH Item Element id (Port Numbers)04 UDH IE length (4 bytes)0B84 destination port number23F0 origin port number01 Transaction ID (Push ID)06 PDU Type (Push PDU)15 Header Length (21 bytes)AE Content Type=application/vnd.wap.sic (0x80 | 0x2E)96 Host, WAP - 230, Appendix A, table 39 (wsp)6C 6F 63 61