HTTPSecureSocket Put

  1. 7 months ago

    Tom I

    9 Sep 2019 Pre-Release Testers, Xojo Pro Chicago, IL
    Edited 7 months ago

    I know HTTPSecureSocket are deprecated but is there a proper way to do a put? Can't find it in the docs and can't search for "put" on here because it's 3 characters and doesn't show up in the first page of search results.

  2. Norman P

    9 Sep 2019 Pre-Release Testers, Xojo Pro outside enjoying the fresh air

    URLConnection.Send("Put", url) would seem to work

  3. Tom I

    9 Sep 2019 Pre-Release Testers, Xojo Pro Chicago, IL

    I'm working in an older project that uses HTTPSecureSocket. The options for that seem to only be Get or Post. IS there any way to do a Put using HTTPSecureSocket?

  4. Norman P

    9 Sep 2019 Pre-Release Testers, Xojo Pro outside enjoying the fresh air

    Oh
    It wasnt apparent to me you werent using a version of Xojo where URLConnection was possible
    I dont know that you have an option as I'm not sure you could replace the POST http header with a PUT one

  5. Vigia L

    9 Sep 2019 Pre-Release Testers, Xojo Pro
    Edited 7 months ago

    You can try

    Dim myHttp as New HTTPSecureSocket
    Dim strRet as String = myHttp.SendRequest("PUT", url,2)
  6. Tanner L

    is not verified 9 Sep 2019 Pre-Release Testers Canada

    Looks like a working example here: https://forum.xojo.com/18890-http-put-string-data-for-update/0

or Sign Up to reply!