HTTP Request Certificate Error

377 views
Skip to first unread message

Dario Piantanida

unread,
Jul 24, 2019, 6:52:40 AM7/24/19
to Tasker
Hello, I'm trying to migrate my HTTP Post to new HTTP Request in Tasker 5.8

It POSTs to an HTTPS URL whose Certificate is not trusted, so I checked "Trust Any Certificate" in HTTP Request as I had in HTTP Post, but I always get:

12.49.40/E add wait type EasyAction1 time 2147483647
12.49.40/E add wait type EasyAction1 done
12.49.40/E add wait task
12.49.40/E Error: 1
12.49.40/E javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

What's wrong?

Somesh

unread,
Jul 24, 2019, 7:33:44 AM7/24/19
to Tasker
Try adding a http:// in front of your link.

Dario Piantanida

unread,
Jul 24, 2019, 7:35:32 AM7/24/19
to Tasker
I can't switch to HTTP: ths server only responds on port 443 and HTTPS protocol.

ktmom

unread,
Jul 24, 2019, 7:49:03 AM7/24/19
to Tasker
Is this a server you control? It could indicate a misconfiguration server side. Modern android is very strict about connecting to https. You could use something like https://www.digicert.com/help/ to check the server.

Otherwise, if you are using a self-signed certificate, you may need to use a custom trust agent as described here: https://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https/6378872#6378872

As an alternatives to using a self-signed certificate, you might want to consider using a free certificate from https://letsencrypt.org

João Dias

unread,
Jul 24, 2019, 8:26:28 AM7/24/19
to tas...@googlegroups.com
Can you please provide a URL I can test that with so I can see if I can get it working? 

Thanks in advance.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/11b75723-c991-4b06-b80d-910a4e70cfad%40googlegroups.com.

Dario Piantanida

unread,
Jul 24, 2019, 8:38:15 AM7/24/19
to Tasker
Hello, no, I can't, I'm sorry: this is a corporate internal server we use to authenticate users.
Is there anything I can do to provide useful informations?

I'll stress that the old HTTP Post Action works without problems...


On Wednesday, July 24, 2019 at 2:26:28 PM UTC+2, joaomgcd wrote:
Can you please provide a URL I can test that with so I can see if I can get it working? 

Thanks in advance.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


On Wed, Jul 24, 2019 at 11:52 AM Dario Piantanida <dario.p...@gmail.com> wrote:
Hello, I'm trying to migrate my HTTP Post to new HTTP Request in Tasker 5.8

It POSTs to an HTTPS URL whose Certificate is not trusted, so I checked "Trust Any Certificate" in HTTP Request as I had in HTTP Post, but I always get:

12.49.40/E add wait type EasyAction1 time 2147483647
12.49.40/E add wait type EasyAction1 done
12.49.40/E add wait task
12.49.40/E Error: 1
12.49.40/E javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

What's wrong?

--
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 tas...@googlegroups.com.

João Dias

unread,
Jul 24, 2019, 10:47:01 AM7/24/19
to tas...@googlegroups.com
Thanks for the report! Can you please try this version? https://drive.google.com/file/d/1UfMEt1H6wjlMDdsqByn-flCRqE45PdJ1/view?usp=sharing

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/22c7570a-9cbb-4e1d-a32d-1b1ef9af5c89%40googlegroups.com.

Dario Piantanida

unread,
Jul 24, 2019, 11:36:28 AM7/24/19
to Tasker
Same result! :-(


On Wednesday, July 24, 2019 at 4:47:01 PM UTC+2, joaomgcd wrote:
Thanks for the report! Can you please try this version? https://drive.google.com/file/d/1UfMEt1H6wjlMDdsqByn-flCRqE45PdJ1/view?usp=sharing

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


João Dias

unread,
Jul 24, 2019, 1:48:14 PM7/24/19
to tas...@googlegroups.com
And it still works with HTTP Post on the same device?


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/e06a7320-6c76-4ae0-bb1e-b60d9748a06a%40googlegroups.com.

Dario Piantanida

unread,
Jul 25, 2019, 3:21:48 AM7/25/19
to Tasker
Yes, HTTP Post works as always


On Wednesday, July 24, 2019 at 7:48:14 PM UTC+2, joaomgcd wrote:
And it still works with HTTP Post on the same device?

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


João Dias

unread,
Jul 25, 2019, 5:58:01 AM7/25/19
to tas...@googlegroups.com
It's hard for me to test because I have no server to test it on :( Are you sure there's no public facing test endpoint I can use? I've tried making it as much like HTTP Post as possible...


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/276c875b-0b58-468c-9676-febb81bc9f70%40googlegroups.com.

Dario Piantanida

unread,
Jul 25, 2019, 6:01:40 AM7/25/19
to Tasker
Yes, unfortunately it's just internal.

Isn't there any log I can pull from Tasker?


On Thursday, July 25, 2019 at 11:58:01 AM UTC+2, joaomgcd wrote:
It's hard for me to test because I have no server to test it on :( Are you sure there's no public facing test endpoint I can use? I've tried making it as much like HTTP Post as possible...

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


João Dias

unread,
Jul 25, 2019, 6:27:34 AM7/25/19
to tas...@googlegroups.com
The  javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.error tells me all I need. I'm just having a hard time to fix it! I tried making it work exactly like the old actions but obviously I'm missing something...


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/1fda20d7-7bd9-46ec-be91-7ef9e007b8f3%40googlegroups.com.

Dario Piantanida

unread,
Jul 25, 2019, 11:05:58 AM7/25/19
to Tasker
Yes, and it seems the same error I get if I disable "accept all certificates" in HTTP Post, so it looks like that switch does not work in HTTP Request...


On Thursday, July 25, 2019 at 12:27:34 PM UTC+2, joaomgcd wrote:
The  javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.error tells me all I need. I'm just having a hard time to fix it! I tried making it work exactly like the old actions but obviously I'm missing something...

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


João Dias

unread,
Jul 25, 2019, 11:10:34 AM7/25/19
to tas...@googlegroups.com
Thanks. Please do let me know if you ever have an example server I can test it on. In the meantime you can simply continue using the old HTTP Post action


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/7c8e4d2f-dd1e-4bee-9fdd-90b6f09ae3b0%40googlegroups.com.

Dario Piantanida

unread,
Jul 25, 2019, 11:13:47 AM7/25/19
to Tasker
Ok meanwhile you can look here https://badssl.com/ for a variety of bad ssl!! :-)


On Thursday, July 25, 2019 at 5:10:34 PM UTC+2, joaomgcd wrote:
Thanks. Please do let me know if you ever have an example server I can test it on. In the meantime you can simply continue using the old HTTP Post action

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


João Dias

unread,
Jul 25, 2019, 11:20:55 AM7/25/19
to tas...@googlegroups.com
Oh cool! Can you get the same error in Tasker in any one of those examples?


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/4c681f32-3461-490b-a7ba-b3a89e1b800b%40googlegroups.com.

Dario Piantanida

unread,
Jul 25, 2019, 11:24:17 AM7/25/19
to Tasker
It seems https://self-signed.badssl.com/ triggers the same result: ok for HTTP Post and bad for HTTP Request

Hope this helps


On Thursday, July 25, 2019 at 5:20:55 PM UTC+2, joaomgcd wrote:
Oh cool! Can you get the same error in Tasker in any one of those examples?

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


João Dias

unread,
Jul 25, 2019, 11:44:51 AM7/25/19
to tas...@googlegroups.com
Oh cool :D That does it! I'll try to fix, thank you!


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/9d38859e-b3fa-4a58-ab55-4e6313fdc634%40googlegroups.com.

João Dias

unread,
Jul 25, 2019, 1:19:17 PM7/25/19
to tas...@googlegroups.com
Ok, got it! Fixed it! :) Can you please try this version? https://drive.google.com/file/d/1UfMEt1H6wjlMDdsqByn-flCRqE45PdJ1/view?usp=sharing

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

Dario Piantanida

unread,
Jul 26, 2019, 2:45:52 AM7/26/19
to Tasker
YES!!!
It's ok!!

Can you now please confirm I have to take the value from "Data/File" of HTTP Post (which is in key=value form) and put it in "Query Parameters" of HTTP Request (changing '=' with ':')?

Thank you!

João Dias

unread,
Jul 26, 2019, 3:30:47 AM7/26/19
to tas...@googlegroups.com
Nice! :D Glad it worked!!

About the Data/File, no, that will correspond with either the Body or the File To Send field :)

Thanks for testing!

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/35c09a95-5c45-43d5-84bf-6e1b705b3561%40googlegroups.com.

Dario Piantanida

unread,
Jul 26, 2019, 4:08:13 AM7/26/19
to Tasker
So I have to cut&Paste from Data/File to Body without changing '=' to ':'?

Thanks again


On Friday, July 26, 2019 at 9:30:47 AM UTC+2, joaomgcd wrote:
Nice! :D Glad it worked!!

About the Data/File, no, that will correspond with either the Body or the File To Send field :)

Thanks for testing!

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


João Dias

unread,
Jul 26, 2019, 4:16:09 AM7/26/19
to tas...@googlegroups.com
It depends on what request you're sending. The body you set in the action is the exact body that will be sent to the server :) What kind of request is the server expecting?


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/b830367e-8ed3-4387-b17c-51e8d7e06bcb%40googlegroups.com.

Dario Piantanida

unread,
Jul 26, 2019, 4:25:24 AM7/26/19
to Tasker
I'm not sure what do you mean here.

It is an authentication page to enable our access on our WiFi; I simulate a login on the page, so I send username, password and a few other parameters taken from the HTML form.
In this case, is it correct to cut&paste to body leaving '='?

One thing: the HTTP Request now runs and I get 200 as Response code, but I'm not authenticated at the end of action (as I was using HTTP Post).

I tried putting %http_data in a Popup action to understand what's happening and I see an HTML Text saying I need a browser that supports JavaScript: could this be caused by the HTTP Request being different from HTTP Post in respect to JS support??

João Dias

unread,
Jul 26, 2019, 4:43:55 AM7/26/19
to tas...@googlegroups.com
Yeah, that could be it. Can you please export what you're using in HTTP Post so I can check it out? Thanks


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

--
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.

Dario Piantanida

unread,
Jul 26, 2019, 5:37:55 AM7/26/19
to Tasker
<Action sr="act2" ve="7">
<code>116</code>
<on>false</on>
<Str sr="arg0" ve="3">https://out.**********.com:4100</Str>
<Str sr="arg1" ve="3">/wgcgi.cgi</Str>
<Str sr="arg2" ve="3">fw_username=***************
fw_password=***************
fw_domain=***************
submit=Login
action=fw_logon
fw_logon_type=logon</Str>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="1"/>
</Action>

On Friday, July 26, 2019 at 10:43:55 AM UTC+2, joaomgcd wrote:
Yeah, that could be it. Can you please export what you're using in HTTP Post so I can check it out? Thanks

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


On Fri, Jul 26, 2019 at 9:25 AM Dario Piantanida <dario.p...@gmail.com> wrote:
I'm not sure what do you mean here.

It is an authentication page to enable our access on our WiFi; I simulate a login on the page, so I send username, password and a few other parameters taken from the HTML form.
In this case, is it correct to cut&paste to body leaving '='?

One thing: the HTTP Request now runs and I get 200 as Response code, but I'm not authenticated at the end of action (as I was using HTTP Post).

I tried putting %http_data in a Popup action to understand what's happening and I see an HTML Text saying I need a browser that supports JavaScript: could this be caused by the HTTP Request being different from HTTP Post in respect to JS support??

On Friday, July 26, 2019 at 10:16:09 AM UTC+2, joaomgcd wrote:
It depends on what request you're sending. The body you set in the action is the exact body that will be sent to the server :) What kind of request is the server expecting?

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

--
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 tas...@googlegroups.com.

João Dias

unread,
Jul 26, 2019, 6:00:58 AM7/26/19
to tas...@googlegroups.com
Can you please export that as description? Thank you!


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/7d725f51-4bc6-4dad-9b75-297996f9cc8b%40googlegroups.com.

Dario Piantanida

unread,
Jul 26, 2019, 6:18:30 AM7/26/19
to Tasker
    ****** Login (8)
    A1: HTTP Get [ Server:Porta:www.google.com Percorso: Attributi: Cookies: User Agent: Timeout:3 Tipo Mime: File di Uscita: Fidati di qualsiasi certificato:Off Continua l'Attività Dopo Un Errore:On ] 
    A2: If [ %HTTPR neq 200 ]
    A3: [X] HTTP Post [ Server:Porta:https://out.************.com:4100 Percorso:/wgcgi.cgi Dati / File:fw_username=******
    fw_password=******
    fw_domain=******
    submit=Login
    action=fw_logon
    fw_logon_type=logon Cookies: User Agent: Timeout:10 Tipo Contenuto: File di Uscita: Fidati di qualsiasi certificato:On ] 
    

On Friday, July 26, 2019 at 12:00:58 PM UTC+2, joaomgcd wrote:
Can you please export that as description? Thank you!

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


virtual

unread,
Jul 31, 2019, 6:52:25 AM7/31/19
to Tasker
Hi, I've the same issue (Error 1) with HTTP Request while the old HTTP POST is working.

Here's my example task:

ZZComparison (87)
<Old action (working)>
A1: HTTP Post [ Server:Port:https://docs.google.com Path:forms/d/1I6wzN1b_cut/formResponse Data / File:entry.116130407=Test1
entry.1209815135=Test2 Cookies: User Agent: Timeout:10 Content Type: Output File: Trust Any Certificate:Off ]
<New action (error)>
A2: HTTP Request [ Method:POST URL:https://docs.google.com/forms/d/1I6wzN1b_cut/formResponse Headers: Query Parameters: Body:entry.116130407=Test1
entry.1209815135=Test2 File To Send: File To Save With Output: Timeout (Seconds):10 Trust Any Certificate:Off ]

I'm using Tasker 5.8.2 and as you can see I'm adding a line to a Google Spreadsheet using the old forms method. I'm not following the example you posted with the HTTP Request action, but as long as the old action works, why should I change it?

The error is this:

12.44.52/E add wait task
12.44.52/E Error: 1
12.44.52/E <!DOCTYPE html><html lang="it"><head><link rel="shortcut icon" sizes="16x16" href="https://ssl.gstatic.com/docs/spreadsheets/forms/favicon_qp2.png"><title> ... CUT ... </html>

... so I'm not getting any Java exception.

João Dias

unread,
Aug 1, 2019, 8:00:18 AM8/1/19
to tas...@googlegroups.com
Try setting the body to something like this:

fw_username=******&fw_password=******&fw_domain=******&submit=Login&action=fw_logon&fw_logon_type=logon


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

--
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.

virtual

unread,
Aug 1, 2019, 11:41:33 AM8/1/19
to Tasker
Thanks, that half solved the issue! After replacing the spaces with ampersand I still got Error 1, but after adding the Content-Type header it worked!!!

Here's the complete task

ZZComparison (87)
<Old action (working)>

A1: [X] HTTP Post [ Server:Port:https://docs.google.com Path:forms/d/1I6wzN1bH_cut/formResponse Data / File:entry.116130407=Test1


entry.1209815135=Test2 Cookies: User Agent: Timeout:10 Content Type: Output File: Trust Any Certificate:Off ]

<New action (now working successfully)>
A2: HTTP Request [ Method:POST URL:https://docs.google.com/forms/d/1I6wzN1bH_cut/formResponse Headers:Content-Type:application/x-www-form-urlencoded Query Parameters: Body:entry.116130407=Test1&entry.1209815135=Test2 File To Send: File To Save With Output: Timeout (Seconds):10 Trust Any Certificate:Off ]

In my opinion you should at least write this (content format and header mandatory) in the action help, because it may not be easy to guess.

This also leads me to a question: what if I need a space on the posted values (e.g. "entry.116130407=Word1 Word2")? I think that the old HTTP Post action did the URL encoding / escaping automatically (as the format was accepted), so how would we escape a text (or a variable too) correctly in the Body field now?

João Dias

unread,
Aug 1, 2019, 11:55:09 AM8/1/19
to tas...@googlegroups.com
Well, it depends! :) Each web service needs different things in their requests. That's just the body and content type header that the server expects, but other servers might expect otherwise. Maybe I can add it as an example though?

About URL encoding, you can use the Variable Convert action :)

virtual

unread,
Aug 1, 2019, 12:24:43 PM8/1/19
to Tasker
Of course the example may help, because you have to think that most people will want to upgrade their old HTTP POST actions (due to the notification that appears every time they use it, as long as they don't dismiss it) and there is no 1:1 correspondence.

OK also for the Variable Convert action... but this means that the old action did the conversion automatically?

Dario Piantanida

unread,
Aug 5, 2019, 5:54:04 AM8/5/19
to Tasker
Here I am after a week off.

Ok, I'll try, but what are "Query Parameters" for, then?
To unsubscribe from this group and stop receiving emails from it, send an email to tas...@googlegroups.com.

virtual

unread,
Aug 5, 2019, 7:10:59 AM8/5/19
to Tasker
Hi Dario, I think that Query Parameters are those that appear on the URL and they are used mainly for GET requests; for example if you have a request like this:


... then the URL is "http://yourserver.com/subfolder/query" and Query Parameters "param1=100&param2=200". If you use Firefox Development tools you can see which is exactly the URL of your request, so your parameters are on the URL then insert them on the Query Parameters, otherwise on Body.

The "problem" is when you have spaces in the values or names: there you must "URL encode" like Joao told before... but I'm pretty sure that the old HTTP Post action did it itself directly because I've never url-encoded.

Dario Piantanida

unread,
Aug 6, 2019, 4:22:56 AM8/6/19
to Tasker
I tried as you suggested, but I still get this error message that I don't think is related to the parameters I pass (I get it even with an empty body):

<html>
<head>
<title>Fireware XTM User Authentication</title>
    <noscript>
        The Fireware XTM User Authentication web page requires that JavaScript
        be enabled in your Web Browser. 
        
        Please retry after enabling JavaScript in your browser. You can use
        the browser's Back button to return to the page you were previously
        viewing.
    </noscript>
</head>
<body>
<script>
        var newloc = "/wgcgi.cgi?action=fw_logon&fw_logon_type=status";
        var search = window.location.search;
        if (search.length > 1) {
            search = search.substring(1);
            newloc += "&" + search;
        }
        window.location = newloc;
    </script>
</body>
</html>


On Thursday, August 1, 2019 at 2:00:18 PM UTC+2, joaomgcd wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to tas...@googlegroups.com.

Dario Piantanida

unread,
Aug 27, 2019, 2:25:36 AM8/27/19
to Tasker
Hello, I'm still in this situation: any new idea about this?
Reply all
Reply to author
Forward
0 new messages