Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about postasync

Read more about postasync

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - postasync

How to pass an object (csv file) to HttpClient.PostAsync as a JSON body?

I am doing the test automation of a post request that takes a csv file (form data in postman) and returns a list. I want to add a csv file as an object in the body of the postasync request in my code....
test-img

Wiss

.net

csv

post

postasync

Votes: 0

Answers: 0

C# different return types based on try-catch

I'm calling API in one of my Service classes as below: public GetCustomerApiResponse SearchCustomerByEmail(string email) { GetCustomerApiResponse customerApiResponse = null; ...
test-img

Unknown Coder

c#

return-value

httpwebresponse

postasync

Votes: 0

Answers: 4

Latest Answer

Presuming you want to do something if the exception is thrown I'd reccomend you do something more like this: public GetCustomerApiResponse SearchCustomerByEmail(string email) { try {} catch(Exce...
test-img

Liam

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved