I am trying to use an API that sends faxes.
I have a PHP example: (I'm using C # though)
2050-01-01 01:00 ',' priority '=> 10 , '44123456789', 'From [1]' => '44123456780', 'File [0]' = '@ / TMP /', 'Output' => Jason ',' 0] '= & gt; Myfirstfile.pdf', 'File [1]' => '@ / tmp / mysecondfile.pdf'); Print_r ($ fax_variables); Curl_setopt ($ CH, CURLOPT_POST, 1); Curl_setopt ($ ch, CURLOPT_POSTFIELDS, $ fax_variables); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, 1); $ Result = curl_xac ($ CH); $ Info = curl_getinfo ($ ch); $ ['HTTP_CODE'] result;; Curl_close ($ ch); Print_r ($ result); ? & Gt;
My question is - C # In the world, how do I achieve the same results?
Do I need to make a post request?
Ideally, I was trying to use it REST - and creating a URL, and using HTTP Webbate (GET) to make API calls
Any time you are sending data, you should use a post. This is regardless of the technology involved.
Look at
Update: For more information
There are many different options in one way, just as you mentioned, just request There is an example of posting data using that method (), the second is
Using alternative WCF is to use the HTML Webbram object and to send it to HTML There is some document on that and there is a book on O'Reilly.
Comments
Post a Comment