[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
receiving http Post/Push data
[Thread Prev] | [Thread Next]
- Subject: receiving http Post/Push data
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Mon, 8 Jul 2024 17:26:31 +0100
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
I have in my gambas program a method that connects to a url that is a gb.web cgi script this url when opened checks the QUERY_STRING and returns data depending on the arg. but i also want to upload some text data to it. I have this function... Public Sub btnUpload_Click() Dim sRes As String Dim s As String = File.LoadArchive(File.SetExt(ESettings.Path, "zx"), True) With $hTp = New HttpClient As "HTP" .URL = $sHost &/ $sScoreAppPath & "?submit" .Post("text/plain", s) ' .Push("text/plain", s) ' tried this way too End With End Then on the server-side the cgi-script runs and it detects the "submit" but i cannot figure out how to access the sent data on the server. I looked at all the CGI[Key] keys, it's not there , Content-Length: is filled and correct but wheres the text data that was sent? Cheers for any advice BruceS
Re: receiving http Post/Push data | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |