I am trying to call curl for Windows from a .bat/.cmd script but I am getting lost escaping those pesky special chars.
It looks something like this:
Code: Select all
@echo off
set Name=My Name
set Email=email@server.com
set Variable=test
curl --data-urlencode \"Name^=%Name%^&EMail^=%Email%^&variable^=%Variable%^&click^=Send+request\" http://example.com:8080/form.asp
It seems the line gets broken where the email variable is so everything after "@" is treated by curl as a remote host.
Any help will be appreciated.
PS. The variables will be take from user input.