HTTP Post question

147 views
Skip to first unread message

Jakub

unread,
Apr 2, 2013, 12:22:52 PM4/2/13
to tas...@googlegroups.com
Got data like this in HTTP Post action

<input type="text" value="%variable" name="somedata" />

1. Is this a good expression?
2. What mime type is it?

In target php script use something like this:

$data = $_POST["somedata"];
echo $data;

HTTPD gives empty flash

Help please.

Jakub

unread,
Apr 2, 2013, 2:42:26 PM4/2/13
to tas...@googlegroups.com
Anyone?

Jakub

unread,
Apr 2, 2013, 3:37:37 PM4/2/13
to tas...@googlegroups.com
Ok.

When I fired from tasker:

A38: HTTP Post [ Server:Port:[my site] Path:[path] Data / File:kurs=%variable Cookies: Timeout:15 Content Type:text/plain Output File: ] 

got empty flash but.....

In script on site:

<form action="kurs_przypomnienia.php" method="post">
Name: <input type="text" value="variable" name="kurs">
<input type="submit">
</form>

Anything work

Matt R

unread,
Apr 2, 2013, 4:06:12 PM4/2/13
to tas...@googlegroups.com
I don't think you'll get a lot of responses because it's not very clear what you're asking. What are you trying to do; what's working; what's not; what have you tried?

Matt

Jakub

unread,
Apr 3, 2013, 4:06:15 AM4/3/13
to tas...@googlegroups.com
Ok. Ones again.
I try to use HTTP POST action with this task:

Test2 (109)
A1: HTTP Post [ Server:Port:www.bsk.linuxpl.com/1/test.php Path: Data / File:result=done Cookies: Timeout:15 Content Type: Output File: ] 
A2: Flash [ Text:%HTTPR Long:Off ] 
A3: Flash [ Text:%HTTPD Long:On ] 


The test.php contains:

<?php
  $data = $_POST["result"];
  echo $data
?>

HTTPR gives 200 but HTTPD flash only %HTTPD

Dave Fisher

unread,
Apr 3, 2013, 4:47:51 AM4/3/13
to tas...@googlegroups.com
Make sure the MIME Type is set suitably in the HTTP Post command (ie. don't leave it on Optional). It caused weird issues like this on HTTP Get, so I guess it might be the same.



--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jakub

unread,
Apr 3, 2013, 5:12:19 AM4/3/13
to tas...@googlegroups.com, mob...@the-darkside.co.uk
I tried:

Content type:
application/x-www-form-urlencoded
text/*
text/plain
text/html
text/xml

Rresults are the same: HTTPR 200 and empty HTTPD

Jakub

unread,
Apr 3, 2013, 8:50:17 AM4/3/13
to tas...@googlegroups.com, mob...@the-darkside.co.uk
I used HTTP Get... 
Reply all
Reply to author
Forward
0 new messages