VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
birgit at westhawk.co.uk Guest
|
Posted: Mon Nov 03, 2008 12:09 pm Post subject: [Freeswitch-users] Javascript: HTTP(S) POST to website |
|
|
Hi all,
I would like to http post some dynamic data to a website in javascript,
ideally over ssl.
I found the Wiki on the Javascript CURL functions:
* fetchURL
* fetchURLHash
* fetchURLFile
however that doesn't seem to do the trick.
Is there another way?
Thanks, Birgit
--
-- Birgit Arkesteijn, birgit@westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- Company no: 1769350
-- Registered Office:
-- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Mon Nov 03, 2008 12:09 pm Post subject: [Freeswitch-users] Javascript: HTTP(S) POST to website |
|
|
I think you just need an https in the url. does that not work.
On Mon, Nov 3, 2008 at 11:02 AM, Birgit Arkesteijn <birgit@westhawk.co.uk (birgit@westhawk.co.uk)> wrote:
Quote: | Hi all,
I would like to http post some dynamic data to a website in javascript,
ideally over ssl.
I found the Wiki on the Javascript CURL functions:
* fetchURL
* fetchURLHash
* fetchURLFile
however that doesn't seem to do the trick.
Is there another way?
Thanks, Birgit
--
-- Birgit Arkesteijn, birgit@westhawk.co.uk (birgit@westhawk.co.uk),
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- Company no: 1769350
-- Registered Office:
-- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
birgit at westhawk.co.uk Guest
|
Posted: Mon Nov 03, 2008 1:02 pm Post subject: [Freeswitch-users] Javascript: HTTP(S) POST to website |
|
|
Hi Anthony,
Thanks for your reply.
No, it just does a HTTP GET of the URL.
With a HTTP POST the parameters shouldn't go as URL parameters, but
should be posted after the connection is opened.
With the functions fetchURL() or fetchURLHash(), there is no separate
argument for the POST parameters, nor a way to explicitly set the method
to POST (instead of GET).
Hope that makes sense.
Thanks, Birgit
On 03/11/08 17:06, Anthony Minessale wrote:
Quote: | I think you just need an https in the url. does that not work.
On Mon, Nov 3, 2008 at 11:02 AM, Birgit Arkesteijn
<birgit@westhawk.co.uk <mailto:birgit@westhawk.co.uk>> wrote:
Hi all,
I would like to http post some dynamic data to a website in javascript,
ideally over ssl.
I found the Wiki on the Javascript CURL functions:
* fetchURL
* fetchURLHash
* fetchURLFile
however that doesn't seem to do the trick.
Is there another way?
Thanks, Birgit
|
--
-- Birgit Arkesteijn, birgit@westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- Company no: 1769350
-- Registered Office:
-- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Mon Nov 03, 2008 3:13 pm Post subject: [Freeswitch-users] Javascript: HTTP(S) POST to website |
|
|
method is the 1st arg to obj->run()
you can put the word "post" there.
On Mon, Nov 3, 2008 at 11:43 AM, Birgit Arkesteijn <birgit@westhawk.co.uk (birgit@westhawk.co.uk)> wrote:
Quote: | Hi Anthony,
Thanks for your reply.
No, it just does a HTTP GET of the URL.
With a HTTP POST the parameters shouldn't go as URL parameters, but
should be posted after the connection is opened.
With the functions fetchURL() or fetchURLHash(), there is no separate
argument for the POST parameters, nor a way to explicitly set the method
to POST (instead of GET).
Hope that makes sense.
Thanks, Birgit
On 03/11/08 17:06, Anthony Minessale wrote:
Quote: | I think you just need an https in the url. does that not work.
On Mon, Nov 3, 2008 at 11:02 AM, Birgit Arkesteijn
|
Quote: | <birgit@westhawk.co.uk (birgit@westhawk.co.uk) <mailto:birgit@westhawk.co.uk (birgit@westhawk.co.uk)>> wrote:
Hi all,
I would like to http post some dynamic data to a website in javascript,
ideally over ssl.
I found the Wiki on the Javascript CURL functions:
* fetchURL
* fetchURLHash
* fetchURLFile
however that doesn't seem to do the trick.
Is there another way?
Thanks, Birgit
|
--
-- Birgit Arkesteijn, birgit@westhawk.co.uk (birgit@westhawk.co.uk),
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- Company no: 1769350
-- Registered Office:
-- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|