• Re: Disable cache at httpsURLConnection

    From Arno Welzel@3:633/10 to All on Thursday, April 16, 2026 16:59:33
    Jakub, 2026-04-16 14:39:

    i have this code to sand values to server php post.
    But how to clear real cache
    [...]

    This newsgroup is about Android, not PHP.

    Also when you post code fragemtns, please remove spaces at the start of
    the lines, so they don't get wrapped.

    try {
    val url = URL(destinationUrl)
    httpsURLConnection = url.openConnection(Proxy.NO_PROXY) as HttpsURLConnection
    [...]

    And this code is not PHP but looks like JavaScript.

    --
    Arno Welzel
    https://arnowelzel.de

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Richmond@3:633/10 to All on Thursday, April 16, 2026 16:15:20
    Arno Welzel <usenet@arnowelzel.de> writes:

    Jakub, 2026-04-16 14:39:

    i have this code to sand values to server php post.
    But how to clear real cache
    [...]

    This newsgroup is about Android, not PHP.

    Also when you post code fragemtns, please remove spaces at the start of
    the lines, so they don't get wrapped.

    try {
    val url = URL(destinationUrl)
    httpsURLConnection =
    url.openConnection(Proxy.NO_PROXY) as HttpsURLConnection
    [...]

    And this code is not PHP but looks like JavaScript.

    Android can run Javascript, so you've gone around in a circle.

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Jörg Lorenz@3:633/10 to All on Thursday, April 16, 2026 17:51:20
    On 16.04.26 17:15, Richmond wrote:
    Arno Welzel <usenet@arnowelzel.de> writes:

    Jakub, 2026-04-16 14:39:

    i have this code to sand values to server php post.
    But how to clear real cache
    [...]

    This newsgroup is about Android, not PHP.

    Also when you post code fragemtns, please remove spaces at the start of
    the lines, so they don't get wrapped.

    try {
    val url = URL(destinationUrl)
    httpsURLConnection =
    url.openConnection(Proxy.NO_PROXY) as HttpsURLConnection
    [...]

    And this code is not PHP but looks like JavaScript.

    Android can run Javascript, so you've gone around in a circle.

    Rather OT in any case.

    --
    "Roma locuta, causa finita" (Augustinus)

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Arno Welzel@3:633/10 to All on Thursday, April 16, 2026 20:56:19
    Richmond, 2026-04-16 17:15:

    Arno Welzel <usenet@arnowelzel.de> writes:

    Jakub, 2026-04-16 14:39:

    i have this code to sand values to server php post.
    But how to clear real cache
    [...]

    This newsgroup is about Android, not PHP.

    Also when you post code fragemtns, please remove spaces at the start of
    the lines, so they don't get wrapped.

    try {
    val url = URL(destinationUrl)
    httpsURLConnection =
    url.openConnection(Proxy.NO_PROXY) as HttpsURLConnection
    [...]

    And this code is not PHP but looks like JavaScript.

    Android can run Javascript, so you've gone around in a circle.

    How to "run JavaScript" in Android itself and not using a web browser?


    --
    Arno Welzel
    https://arnowelzel.de

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Arno Welzel@3:633/10 to All on Friday, April 17, 2026 12:06:21
    Andy Burns, 2026-04-17 08:44:

    Arno Welzel wrote:

    Jakub wrote:

    try {
    val url = URL(destinationUrl)
    httpsURLConnection =
    url.openConnection(Proxy.NO_PROXY) as HttpsURLConnection
    [...]

    And this code is not PHP but looks like JavaScript.
    From the "as" keyword, it looks like Kotlin ...

    Yes, you're right. Seems to be Kotlin and thus more on-topic here again.


    --
    Arno Welzel
    https://arnowelzel.de

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)