These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

APIKeyInfo returning an error. FIXED

Author
Turk Fezzik
Sons of Seyllin
Pirate Lords of War
#1 - 2012-08-10 17:57:04 UTC  |  Edited by: Turk Fezzik
I am getting the following error when I get APIKeyInfo. Can someone tell me what this error means? I assume it means the API info is wrong however it works with GET in Firefox.

http://www.privatepaste.com/f8f64f4b39

I'm using C# and UploadStringAsync to make the query.

http://www.privatepaste.com/1d5a2a2ec9

Also, does anyone know a way to sniff the packets exchanged with the API server? Wireshark doesn't work since the exchange is HTTPS.
Turk Fezzik
Sons of Seyllin
Pirate Lords of War
#2 - 2012-08-10 18:46:27 UTC  |  Edited by: Turk Fezzik
I found Fiddler and was able to extract the raw HTTPS packet sent to the API server. This article helped me get Fiddler setup to capture HTTPS from the Windows Phone emulator. http://blogs.msdn.com/b/fiddler/archive/2010/10/15/fiddler-and-the-windows-phone-emulator.aspx

Here is the raw packet (with the API key tweaked of course)

http://www.privatepaste.com/4df04c3c2e

I don't see anything odd there. Do you?

I'm using POST because the EveDev wiki recommended it. I notice that EveMon uses GET for it's queries. Is POST unreliable?
Turk Fezzik
Sons of Seyllin
Pirate Lords of War
#3 - 2012-08-10 18:53:33 UTC
I figured it out. I was missing this line.

client.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
Desmont McCallock
#4 - 2012-08-10 19:18:31 UTC
Turk Fezzik wrote:
I found Fiddler and was able to extract the raw HTTPS packet sent to the API server. This article helped me get Fiddler setup to capture HTTPS from the Windows Phone emulator. http://blogs.msdn.com/b/fiddler/archive/2010/10/15/fiddler-and-the-windows-phone-emulator.aspx

Here is the raw packet (with the API key tweaked of course)

http://www.privatepaste.com/4df04c3c2e

I don't see anything odd there. Do you?

I'm using POST because the EveDev wiki recommended it. I notice that EveMon uses GET for it's queries. Is POST unreliable?

Just FYI EVEMon is using POST.
Dragonaire
Here there be Dragons
#5 - 2012-08-11 03:51:00 UTC
So does Yapeal and it works just as well or better than GET would.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.