[Freeswitch-users] Javascript: HTTP(S) POST to website

Birgit Arkesteijn birgit at westhawk.co.uk
Mon Nov 3 09:43:27 PST 2008


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 at westhawk.co.uk <mailto:birgit at 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 at 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>



More information about the Freeswitch-users mailing list