Skip to content

POST to PHP does not work on build (allow HTTP) #7302

Closed Answered by Himra
Himra asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @FabianLars,

that was the tip which helped me.
Now also without https on the network server
The following is running in my build:

<template>
  <div>
    <p v-for="ma in Daten" :key="ma.pers_nr">
      {{ ma.name }}
    </p>
  </div>
</template>

<script>
import { getClient, Body, ResponseType } from "@tauri-apps/api/http";
export default {
  data() {
    return {
      Daten: [],
    };
  },
  async created() {
    this.Daten = await this.AlleMitarbeiter("KT", "A");
  },

  methods: {
    AlleMitarbeiter: async (Abteilung, pg_ken) => {
      const client = await getClient();
      const response = await client.post(
        "http://192.168.xxxxxxxxxx/Aktion.php",
        Body.form({

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@FabianLars
Comment options

@Himra
Comment options

@FabianLars
Comment options

@Himra
Comment options

Answer selected by FabianLars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants