Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. I am new to php.I need to post the xml contents to https server and retrieve the posted data back in the server side using php.I am using the CURL code in the below link for client side code
  2. http://curl.haxx.se/libcurl/c/post-callback.html
  3.  
  4. <?php
  5. echo "testingn";
  6. $foo =htmlspecialchars($_GET['ptr']);
  7.  
  8. if($foo== "test")
  9. {
  10. echo "test string received";
  11. }
  12. else
  13. {
  14. echo "Not yet reached";
  15. }
  16.  
  17. ?>
  18. I am posting the String "test" only.But I am always getting the response as "Not yet Reached from server side".How to check the data what we send,Thanks in advance.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement