cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Command Line conversion to php

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 22 Feb 2011 22:54:14 +0100 (CET)

On Tue, 22 Feb 2011, Tom Spappola wrote:

> Can someone please help me to convert the following command line to php ?
>
> curl -ssl2 -k -d @invio.xml -H "Content-Type:
> application/soap+xml;charset=UTF-8" "https://www.webservice/gofor.wsdl"

1. "-ssl2" is four different single-letter options written next to each other.
If you want the long version of an option use two dashes: --sslv2

2. Consider using the --libcurl option to get a basic C program skeleton
generated for the command line set you used. Converting that into PHP is often
rather trivial.

-- 
  / daniel.haxx.se
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2011-02-22