|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
querying a script from VB?
Hello all,
I need to write a program that will query a script (using GET) and will then, depending on the result, display some stuff to the user. Is this possible in VB? Lets say my script is at: http://mysite/cgi-bin/script.cgi and I want to send it field=value and I want to see the data that it sends back so that my app can devide what to do. Thanks, Richard
__________________
|
|
#2
|
|||
|
|||
|
|
|
#3
|
|||
|
|||
|
I can't use the webbrowser control because i need to know the source code of the page that is returned. Is there another way?
|
|
#4
|
|||
|
|||
|
Maybe you could try explaining your situation again? I don't understand your response.
|
|
#5
|
|||
|
|||
|
I have an app that requires a serial number to be input before the user can use it. When the app recieves the serial number, it sends it to a script using GET, and that script then querys a database to check to see if the serial number is valid. If the number is valid, it returns a 1. If it is invalid, it returns a 0. I need to get this number into the program so the program can decide wether or not to run.
|
|
#6
|
|||
|
|||
|
How are you sending data to the script now? The webbrowser control or the Internet Transfer control both can send to and read from a http server. Your script has to return something just as it would to a web browser.
|
|
#7
|
|||
|
|||
|
my script reads the GET input (the stuff after the ? in the URL) and then decides wether or not a serial is valid. then then prints a 1 or a 0, depending on wether or not the serial is valid.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > querying a script from VB? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|