I suspect that someone red flagged an earlier thread asking for a consultant to help with the above.
Now, that falls outside the posting guidelines, and reporting it was certainly justified, but as I had
answered the query with a simple example that has gone at the same time, I thought I would post the code again.
Firstly you need to include the wwhttp.prg in your project and call it before you use the classes contained
in wwipstuff.vcx (which also needs to be included in your project).
Then you can do this:
I have used a classic asp reference as the target for the post, but it could be
aspx or php or whatever, to access the result ("Project" in this case) in asp
you need code like this in the file.
But watch out how you use that received string, it might be a SQL injection vector, so
apply it using a parameterized query (so it can't be executed) or run it through something
that would remove anything 'dangerous' like "drop table tblUsers" B-)
Regards
Griff
Keep [Smile]ing
Now, that falls outside the posting guidelines, and reporting it was certainly justified, but as I had
answered the query with a simple example that has gone at the same time, I thought I would post the code again.
Firstly you need to include the wwhttp.prg in your project and call it before you use the classes contained
in wwipstuff.vcx (which also needs to be included in your project).
Then you can do this:
Code:
DO WWHTTP
OHTTP = CREATEOBJECT("wwHTTP")
*** Set mode to multi-part form
OHTTP.NHTTPPOSTMODE = 2
OHTTP.ADDPOSTKEY("Project","The name of my project")
LCHTML = OHTTP.HTTPGET("[URL unfurl="true"]http://www.myserver.com/myaspfile.asp")[/URL]
RELEASE OHTTP
I have used a classic asp reference as the target for the post, but it could be
aspx or php or whatever, to access the result ("Project" in this case) in asp
you need code like this in the file.
Code:
strProject = Request.Form("Project")
But watch out how you use that received string, it might be a SQL injection vector, so
apply it using a parameterized query (so it can't be executed) or run it through something
that would remove anything 'dangerous' like "drop table tblUsers" B-)
Regards
Griff
Keep [Smile]ing
There are 10 kinds of people in the world, those who understand binary and those who don't.
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
There is no place like G28 X0 Y0 Z0
I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.
There is no place like G28 X0 Y0 Z0