Hi,
One of my supplier need to connect and get datas from me with Airtable. He wants to do it with a webhook. I started with a web App but could not get it to work and ended up with a desktop App.
Using postman I can reach my app and my app send back “200 OK” and postman receive it well.
When the supplier send datas with Airtable I can read them but Airtable times out because it never receive a feedback from me. I suppose it’s because “200 OK” is not what it expect to get…
Here is what I get from Airtable through http://MyIpAddress:8081/webhook
**POST /webhook HTTP/1.1Host: 92.173.85.1:8081sentry-trace: fc85924cb1724a38aa6a73be09ebc2bc-b542b3bb14b831c7-0User-Agent: ZapierAccept-Encoding: gzip, deflate, brAccept: /Connection: keep-aliveContent-Type: application/json; charset=utf-8Content-Length: 48x-datadog-trace-id: 2110273769097866701x-datadog-parent-id: 13390451017487162922x-datadog-sampling-priority: 1traceparent: 00-00000000000000001d4932cff1e72dcd-b9d4704137971e2a-01tracestate: dd=s:1{“”: “80”, “_1”: “70”, “_2”: “RGB”, “_3”: “24V”}
I am using a server socket listening to port 8081 and here’s the code in datavaialable
Var input As String = Me.ReadAll
Me.Write("HTTP/1.1 200 OK" + EndOfLine.CRLF)
Me.Write("Content-Type: text/plain" + EndOfLine.CRLF)
Me.Write("Connection: close" + EndOfLine.CRLF)
Me.Write(EndOfLine.CRLF) // Marquer la fin des en-têtes avec CRLF
Me.Flush
me.Close
If input.IndexOf("POST") <> -1 Then
// Afficher toute la requête brute reçue
'Données.TfListen.Text=input
MessageBox("Requête brute reçue : " + EndOfLine + input)
end
Thanks
Chris
3 posts - 2 participants