![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I'm trying to post variables to a PHP script that repeats back requested information, but I'm having trouble getting it to actually display. Here's what I have:
Code:
Sub loginButton_Click
Request.New1("http://tixscan.net/api/login.php")
Request.Method = "POST"
Request.Timeout = 30000
Request.ContentType = "application/x-www-form-urlencoded"
bin.New1(Request.GetStream,true) 'Use a BinaryFile object to write the data to the Request stream.
bin.WriteString("api=1")
Response.New1
Response.Value = Request.GetResponse
result = Response.GetString
Response.Close
Msgbox(result)
End Sub
Any ideas? |
|
|||
|
Yes. I have another API that returns "NO" if the value sent is not found, and when I use the URL for that one Basic4ppc always displays "NO" even though I know the API I am sending is correct. (These APIs work in my other apps, but not in Basic4ppc). I think there is a problem with how it is sending the "api=1" string (1 is the API key for my test account).
Thanks |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTTP POST error message | miataman | Questions & Help Needed | 10 | 07-11-2008 11:28 AM |
| HTTP POST error | Elrick | Bug Reports | 3 | 05-24-2008 03:06 PM |
| HTTP Post fails if Umlauts sent and UTF-8 is used | TWELVE | Questions & Help Needed | 11 | 04-29-2008 11:13 AM |
| HTTP POST on Device - error message | TWELVE | Questions & Help Needed | 6 | 04-26-2008 10:35 AM |
| HTTP Post | ohkovar | Questions & Help Needed | 3 | 07-07-2007 05:36 PM |