Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19506
| Received | by 10.224.186.20 with SMTP id cq20mr10758598qab.8.1351203815470; Thu, 25 Oct 2012 15:23:35 -0700 (PDT) |
|---|---|
| Received | by 10.52.71.38 with SMTP id r6mr4047425vdu.12.1351203815393; Thu, 25 Oct 2012 15:23:35 -0700 (PDT) |
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!x14no8397420qar.0!news-out.google.com!r17ni57592152qap.0!nntp.google.com!x14no8397411qar.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.java.programmer |
| Date | Thu, 25 Oct 2012 15:23:35 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=189.151.99.156; posting-account=-ZKCJQoAAAA8iMQCLjycQZcqJu20-o4E |
| NNTP-Posting-Host | 189.151.99.156 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <6c4cbf49-d97e-4bf8-9c8c-050943cf268d@googlegroups.com> (permalink) |
| Subject | CURL-PHP to Java-HTTPComponents |
| From | LMario <lefalme@gmail.com> |
| Injection-Date | Thu, 25 Oct 2012 22:23:35 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Received-Bytes | 1654 |
| Xref | csiph.com comp.lang.java.programmer:19506 |
Show key headers only | View raw
Somebody can help to me to rewrite to next CURL PHP code to Java HTTPComponents:
$process = curl_init('https://www.test.com/directory');
curl_setopt($process, CURLOPT_HTTPHEADER, array('Content-Type: text/xml', 'charset=utf-8'));
curl_setopt($process, CURLOPT_POSTFIELDS, $sob->saveXML());
curl_setopt($process, CURLOPT_SSLCERT, '123456789.cer');
curl_setopt($process, CURLOPT_SSLCERTPASSWD, "123456789");
curl_setopt($process, CURLOPT_RETURNTRANSFER, true);
curl_setopt($process, CURLOPT_POST, true);
curl_setopt($process, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($process, CURLOPT_SSL_VERIFYHOST, false);
$answer = curl_exec($process);
curl_close($process);
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
CURL-PHP to Java-HTTPComponents LMario <lefalme@gmail.com> - 2012-10-25 15:23 -0700
Re: CURL-PHP to Java-HTTPComponents Jim Gibson <jimsgibson@gmail.com> - 2012-10-25 17:16 -0700
Re: CURL-PHP to Java-HTTPComponents LMario <lefalme@gmail.com> - 2012-10-25 20:01 -0700
Re: CURL-PHP to Java-HTTPComponents Joerg Meier <joergmmeier@arcor.de> - 2012-10-26 21:16 +0200
csiph-web