cliffski
05-27-2006, 02:09 PM
Ok I'm a little stuck here. I have a php page that takes in some variables and writes them to disk. so I kinda have this:
www.positech.co.uk/test.php?var1=zog
which if I stick into firefox, it does what it says on the tin, and My value "zog" gets written in a file.
If I use WinInet to request the same URL, sod all happens. I'm checking my return codes from all my functions, everything checks out ok, but nothing happens at the server side.
I've tried using POST instead of GET in the httpOpenRequest stuff. Im not mucking around with additional headers because as I understand it, I just need to call SendRequest() on that url and it should run the php and do the right thang?
I've spent ages googling but cant find anyone using wininet to talk to php using url variables. can it be done?
I looked at happyhttp but it wouldnt link on my setup ;(
if its easier, forget php, how can i append data to a file at the server using wininet? my feeble attempts at using InternetWriteFile() also amount to nothing. is php the thing to use here? or even CGI?
I am teh n00b.
www.positech.co.uk/test.php?var1=zog
which if I stick into firefox, it does what it says on the tin, and My value "zog" gets written in a file.
If I use WinInet to request the same URL, sod all happens. I'm checking my return codes from all my functions, everything checks out ok, but nothing happens at the server side.
I've tried using POST instead of GET in the httpOpenRequest stuff. Im not mucking around with additional headers because as I understand it, I just need to call SendRequest() on that url and it should run the php and do the right thang?
I've spent ages googling but cant find anyone using wininet to talk to php using url variables. can it be done?
I looked at happyhttp but it wouldnt link on my setup ;(
if its easier, forget php, how can i append data to a file at the server using wininet? my feeble attempts at using InternetWriteFile() also amount to nothing. is php the thing to use here? or even CGI?
I am teh n00b.