Please paste your full curl command

Sent from my iPad

> On Aug 17, 2015, at 3:06 PM, Greg Nifor <[email protected]> wrote:
> 
> When I try that the variables are empty.
> 
>> On Monday, August 17, 2015 at 11:49:09 AM UTC-7, walter.kelt wrote:
>> You need to use -F for file and -F for data.
>> 
>> Sent from my iPad
>> 
>>> On Aug 17, 2015, at 2:41 PM, Greg Nifor <[email protected]> wrote:
>>> 
>>> Is there a way to use curl to send both a file and string parameter. I can 
>>> do each individually, but not together.
>>> 
>>> Works:
>>> 
>>> curl -X POST <jenkins_url>/job/<job>/buildWithParameters -u 
>>> <user>:<password> -F file=@/path/to
>>> 
>>> curl -X POST <jenkins_url>/job/<job>/buildWithParameters -u 
>>> <user>:<password> --data string0=foo --data string1=bar
>>> 
>>> Doesn't Work:
>>> 
>>> curl -X POST <jenkins_url>/job/<job>/buildWithParameters -u 
>>> <user>:<password> -F file=@/path/to --data string0=foo --data string1=bar
>>> 
>>> The result I get is: Warning: You can only select one HTTP request!
>>> 
>>> 
>>> Any ideas?
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/65067202-61bf-40b8-8509-376d5ae79589%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/f0a472a1-78f1-4a96-a15c-cf116565cdf8%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2E4FDB9D-A458-4239-98E1-495C3C080489%40comcast.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to