Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use curl in quick macros
#4
Ultimately what I needed was the url put into a str var. I used this code to accomplish that, if there is another (better) solution let me know please. 

str s10 s11
_s="curl https://image.groupme.com/pictures -X POST -H ''X-Access-Token: 2lN1UI55cjT2yFKU8icjlIIZ4gNDnV9nfQeP5kd'' -H ''Content-Type: image/jpeg'' --data-binary @C:\Users\jim\Pictures\GroupMe\example.png"
RunConsole2(_s s10 "" 0x200)
if s10
    findrx(s10 "''url'':''(.+)'',''(.+)''" 0 0 s11 1)
else
    out "error"
out s11


Messages In This Thread
use curl in quick macros - by jps01 - 02-09-2020, 09:36 PM
RE: use curl in quick macros - by Gintaras - 02-10-2020, 06:23 AM
RE: use curl in quick macros - by jps01 - 02-10-2020, 09:54 AM
RE: use curl in quick macros - by jps01 - 02-10-2020, 12:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)