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>
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>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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
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:
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>
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>wrote:
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:
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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (2)
-
Anthony Minessale
-
Birgit Arkesteijn