# Any cURL equivalent? HTTP POST/GET?

**URL:** https://www.finalbuilder.com/forums/t/any-curl-equivalent-http-post-get/4624
**Category:** Discussion
**Created:** [July 27, 2017, 3:52am UTC](https://www.finalbuilder.com/forums/t/any-curl-equivalent-http-post-get/4624 "2017-07-27T03:52:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lukehawk](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/3bc359/32.png) [@lukehawk](https://www.finalbuilder.com/forums/u/lukehawk)
#### Post date: [July 27, 2017, 3:52am UTC](https://www.finalbuilder.com/forums/t/any-curl-equivalent-http-post-get/4624/1 "2017-07-27T03:52:02Z")

</div>

I am very new to automise, but pretty familiar with scripting languages (VBScript, Python). The following is what I can run in the command line to use [curl](https://en.wikipedia.org/wiki/CURL)to get a comma separated value back from an API server:  
  
curl -X POST --user username:password --data-raw “Request=GET%2C%2892837F755%29” [http://example.com/cgi/stuff](http://example.com/cgi/stuff)  
  
What would be the action I could use to run this? I found the HTTP Get File action, but I am not downloading a file. I am simply reading a string.   
  
I have tried using the PowerShell script, but I cannot figure out &nbsp;how to get the response out of PowerShell&nbsp;and into Automise.&nbsp;  
  
Any help?? How would I do this?

  

Thanks!!

---

<div class="post-metadata">

### Author: ![lukehawk](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/3bc359/32.png) [@lukehawk](https://www.finalbuilder.com/forums/u/lukehawk)
#### Post date: [July 27, 2017, 3:53am UTC](https://www.finalbuilder.com/forums/t/any-curl-equivalent-http-post-get/4624/2 "2017-07-27T03:53:35Z")

</div>

Oh -   
  
 I have also tried the ‘Run Script’ action, using VBScript, but how do I get variables in and out of the script?

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [July 31, 2017, 1:05am UTC](https://www.finalbuilder.com/forums/t/any-curl-equivalent-http-post-get/4624/3 "2017-07-31T01:05:02Z")

</div>

Hi Luke,   
  
 Saw your question in our support section, just encase you didn’t see this response I thought I would post it here:   
  
 Your best bet would be to use curls file output feature to save the response (–output). You could load this file into a variable and parse it for the values you want.   
  
 If the output is Json, you could use a JavaScript action to Eval the object, and then extract the property you require. This has risks however.   
  
 The best way would be to use regex, or a string find action to locate the property your after and copy its value to another variable.
