CURL XML Request [From C to PHP]

Posted on 16th Feb 2014 07:03 pm by admin


I need some help converting this into something that will work with PHP.

Code: #!/bin/sh


cat <<DONE | sed -e 's/&/&amp;/g'
-e 's/</&lt;/g'
-e 's/>/&gt;/g'
> ${XMLFILE}.encoded
<?xml version="1.0" encoding="UTF-8"?>
<services user="USER" password="PASS">

#curl -v -d @- "${URL}" -H 'SOAPAction: AffiliatesAPI' <<DONE

curl --trace trace.txt -d @- "${URL}" -H 'SOAPAction: AffiliatesAPI' <<DONE
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="" xmlns:xsd="" xmlns:xsi="">
<xmlString>`cat ${XMLFILE}.encoded`</xmlString>


No comments posted yet

Your Answer:

Login to answer
152 Like 52 Dislike
Previous forums Next forums
Other forums

login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php

How to convert this array to string
I am having problems converting this array to a string
using print_r($val[1]); I get:
Code: [

breaking a text file into paragraphs based on strings
I have a text file of email addresses that is all squished together. It looks like this:


DataTable Help Required
Hi all I am creating an app that utilises and MS Access back end and queries it quite a bit at vario

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS

Play Free Quiz and Win Cash