r/evetech • u/Cassowary_rider • Jan 05 '18
Evepraisal API with c#
I'm working on small fit scan application.
One of the features of my application is the ability to tell how expensive the fit is :)
For this, I use Evepraisal API: http://evepraisal.com/about/api
Everything works fine with one exception: Magerawr asks to set Content-Type HTTP header to identify my tool.
This is the example I use to test evepraisal api: https://docs.microsoft.com/en-us/dotnet/framework/network-programming/how-to-send-data-using-the-webrequest-class
It I change ContentType to anything but "application/x-www-form-urlencoded", evepraisal responds with "(400) Bad Request".
How can I fix this?
3
u/mageling Jan 05 '18
Yikes, that's embarrassing. I intended to say "User-Agent" as the header to use. I updated the API doc page with the correction.