i need to communicate with php website and i need to change params in this : GetString db "GET /in.php2?% HTTP/1.0",0dh,0ah db "Host: www.myserveur.com",0dh,0ah db "User-Agent: MyAgent",0dh,0ah db "Connection: Close",0dh,0ah db "Accept: text/*,image/*,application/*,*/*",0dh,0ah,0dh,0ah,0 After in.php2? i need to put some params. how can i make it using wsprintfA (like in http downloader tut)
use the %s format tag:
this will result in szBuffer: "The most famous example: Hello World" Use two %% signs for a single % in the output stream. This message was edited by beaster, on 5/16/2001 5:14:14 AM
.data szBuffer: db 128 dup(0) szFmt: db "The most famous example: %s %s", 0 szHello: db "Hello", 0 szWorld: db "World", 0 .code push szWorld push szHello push offset szFmt push offset szBuffer call wsprintfa add esp, 16
Hi beaster, this is nearly the same thing I suggested him to do. Since the server was down :( I mailed the solution to him and as you saw in his snippet he just forgot the 's'. Now it is working for him.