简体   繁体   中英

Send file using PHP POST in C#

I want to send csv file using php POST method in C#. I'm using WebClient. I know how I can upload file. But I don't know how I can combine send file with other parameters in NameValueCollection.

I have to send few parameters and additionaly CSV file. How I can do this in C#?

There is no "PHP POST", just POST or GET (that are part of HTTP request, like many order verbs). You should consider using HttpWebRequest in order to send data via POST.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM