Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


cellist
2011-01-19T22:55:48Z
Running 5.6.9. I'm trying to create an HTTP task that POSTS two parameters to
a website. The website is receiving the URL, but the parameters have been lost.

What am I doing wrong?
cellist attached the following image(s):
Sponsor
Forum information
Support
2011-01-19T22:57:41Z
There is a difference between POST and GET. POST parameters are not visible (in log for example).

But if they are not visible in your script then you are probably using the wrong method in your script to retrieve the parameters. Normally you cannot retrieve parameters for POST the same way as GET.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cellist
2011-01-19T23:03:04Z
The script works perfectly when I use the following HTML:

<form method="post" action="SystemHealth.asp">
<h3>Test System Health</h3>
Text for System Health Message:<br><br>
<textarea name="Message" type=text style="width:400px;height:200px;"></textarea><br><br>
<input type="submit" value="Submit" />
</form>

And I'm definitely retrieving all the POST variables on the other end.
Support
2011-01-19T23:04:12Z
Maybe it works better if you use a capital m: Message= instead of message=
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cellist
2011-01-19T23:06:45Z
I already tried that. On the script side, I'm actually printing out the entire contents of the request.form,
which is why I know that it's not passing the parameters at all.
Support
2011-01-19T23:09:43Z
Is it possible to test it from here? Also, can you supply some server code where you show how you pickup the value?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cellist
2011-01-19T23:14:19Z
Sure, here's the relevant code:

for each item in request.form
message=message & "Item name: " & item & "Item value: " & request.form(item)
next

When I run my code above, I get the appropriate item.
When I run the HTTP task, the message variable comes out completely empty.
Support
2011-01-19T23:22:10Z
Try skipping the loop:

request.form("Message")
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
cellist
2011-01-20T00:32:34Z
Solution found:

The domain name was forwarding to another domain name and was not passing the POST variables. How subtle is that?

Thanks for your help.
Support
2011-01-20T09:52:26Z
Great that you found it as that is a cause that is explainable.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top