FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

execute web-url

 


TomS
hi there.
I need a function in any language (no scriptlanguages like php or js)
that executes a phpscript with get-data.

One way would be to open an invisible window with a container that opens the webpage "www.example.com/script.php?data=blabla". But this is very slow and only the last way that I would go.
I also tried to send a string to www.example.com, 80
with "GET /script.php?data=blabla", but this didn't work.

Is there a possiblility?
Bestsolution for me would be a Windows-Api-Hook or an Basic-function, but also every function in every other language (c,c++,delphi) would be great.

Thanks in advance
hexkid
wget
The C source is available there too.
TomS
Thank you. I worked something out.

The thing with sending a string works, but I forgot the rest of the header. That's also important.

Header.s + "GET /script.php?data=blabla HTTP/1.1" + #CRLF$
Header.s + "Host: example.com" + #CRLF$
Header.s + "Accept: */*" + #CRLF$
Header.s + "Connection: Close" + #CRLF$ + #CRLF$

SendString("example.com",80,Header)
Kelcey
Java has some built in stuff. I've been working on having a desktop app get info from the Web... it's fairly easy through JAva. This may not be exactly what you're looking for though..
TomS
Hi,Keylcey.
I have no clue about Java. But if you have, could you make me a DLL with only one function. I figured out now how to send data via GET, but POST is still not working. A DLL with one function
Code:
sendpostdata(
host //0-terminiated string
file //0-terminated string
data //0-terminated string
)


a codesample should look like this:
Code:
sendpostdata("www.server.com","script.php","var=hallo&anothervar=goodbye")


If you could do that for me, and I get it working, you'll receive good payment Very Happy

cu, TomS
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.