Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to use curl to incorporate this into my script?
    text
    copied!<p>I have been advised to use this in my script </p> <pre><code> curl -X POST https://api.twilio.com/2010-04-01/Accounts/HIDDEN/SMS/Messages.json \ -u HIDDEN\ -d "From=+442033228389" \ -d "To=hidden" \ -d 'Body=test' </code></pre> <p>But a simple cut and paste does not do the trick? How would I go about incorporating this into my script?</p> <p>Results:</p> <p>var_dump($output); returns: bool(false) </p> <p>var_dump($info); returns:</p> <blockquote> <p>array(26) { ["url"]=> string(95) "<a href="https://api.twilio.com/2010-04-01/Accounts/AC7ae43150d51cce16de4be6ed0be5ca90/SMS/Messages.json" rel="nofollow">https://api.twilio.com/2010-04-01/Accounts/AC7ae43150d51cce16de4be6ed0be5ca90/SMS/Messages.json</a>" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(0.093) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0.093) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) ["redirect_url"]=> string(0) "" ["primary_ip"]=> string(15) "174.129.254.101" ["certinfo"]=> array(0) { } ["primary_port"]=> int(443) ["local_ip"]=> string(11) "192.168.0.2" ["local_port"]=> int(28469) }</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload