Guest User

Untitled

a guest
Nov 24th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. $context = stream_context_create(array(
  2. 'http' => array(
  3. 'method' => 'POST',
  4. 'content' => $content,
  5. )
  6. ));
  7.  
  8. $result = file_get_contents('https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8', null, $context);
  9.  
  10. $context = stream_context_create([array(
  11. 'http' => array(
  12. 'method' => 'POST',
  13. 'content' => $content,
  14. ),
  15. 'ssl' => [
  16. 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT |
  17. STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT,
  18. ],
  19. )]);
  20.  
  21. $result = file_get_contents('https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8', false, $context);
Add Comment
Please, Sign In to add comment