|
From: Chris B. <bra...@gm...> - 2010-08-12 16:31:34
|
Looks perfect - I'll try it out. Thanks!
On Thu, Aug 12, 2010 at 12:28 PM, Mark Rickerby <co...@gm...> wrote:
> A while ago, this feature was added, alongside HTTP PUT capability (in
> SVN trunk only...)
>
> Method signature:
>
> /**
> * @param string $url URL to fetch.
> * @param mixed $parameters Optional POST parameters or content body to
> send
> * @param string $content_type Content type of provided body
> */
> post($url, $parameters = false, $content_type = false)
>
> just supply a string to the post parameter arg, rather than a hash of
> key value pairs. The content type should also be set, to tell the
> server what format the post body contains:
>
> $this->post('http://ex.amp.le/', '{"Person":{"name":"Test"}}',
> 'application/json');
>
> Hope that helps,
> Mark
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Simpletest-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simpletest-support
>
|