Click here to Skip to main content
15,904,024 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
JokeHere's a book I could really use!!! Pin
Johnny J.12-Oct-16 2:31
professionalJohnny J.12-Oct-16 2:31 
GeneralRe: Here's a book I could really use!!! Pin
glennPattonWork312-Oct-16 2:46
professionalglennPattonWork312-Oct-16 2:46 
GeneralRe: Here's a book I could really use!!! Pin
OriginalGriff12-Oct-16 2:54
mveOriginalGriff12-Oct-16 2:54 
GeneralRe: Here's a book I could really use!!! Pin
Cornelius Henning12-Oct-16 3:08
professionalCornelius Henning12-Oct-16 3:08 
GeneralRe: Here's a book I could really use!!! Pin
OriginalGriff12-Oct-16 3:14
mveOriginalGriff12-Oct-16 3:14 
GeneralRe: Here's a book I could really use!!! Pin
Johnny J.12-Oct-16 3:39
professionalJohnny J.12-Oct-16 3:39 
GeneralRe: Here's a book I could really use!!! Pin
Mycroft Holmes12-Oct-16 14:41
professionalMycroft Holmes12-Oct-16 14:41 
GeneralFour hours and an S... Pin
Sander Rossel12-Oct-16 2:22
professionalSander Rossel12-Oct-16 2:22 
So a coworker had this weird issue on a Windows Phone app.
Send a POST request to the server and get an (internal server) error 400 "GET is not supported."
Some debugging and logs checking later we found out that for some reason the body of the request was not logged.
Checked out the source code and it wasn't logged because it contained sensitive information.
Turned on the logging for this call only to find that there was no body at all...
Some Google-fu taught us that older versions of IE convert POSTs to GETs if the body is empty.
But why is there no body?
Now, some more debugging... Is the AJAX call okay? Are all values valid? Is something funny going on at the server application? Is the URL alright? Does it work on other environments?

Finally, two hours later, another coworker ask what URL we're posting to. http://something...
There's the problem, it's actually httpS or some internal network thingy does a redirect and empties the body converting it to a GET.

There goes four hours of productivity for a stupid redirect D'Oh! | :doh:
Just one of those days... Sigh | :sigh:
Read my (free) ebook Object-Oriented Programming in C# Succinctly.
Visit my blog at Sander's bits - Writing the code you need.
Or read my articles here on CodeProject.
Simplicity is prerequisite for reliability.
— Edsger W. Dijkstra
Regards,
Sander

GeneralRe: Four hours and an S... Pin
Johnny J.12-Oct-16 2:27
professionalJohnny J.12-Oct-16 2:27 
GeneralRe: Four hours and an S... Pin
Sander Rossel12-Oct-16 4:01
professionalSander Rossel12-Oct-16 4:01 
Generalxotd Pin
Nagy Vilmos12-Oct-16 1:27
professionalNagy Vilmos12-Oct-16 1:27 
GeneralRe: xotd Pin
Eddy Vluggen12-Oct-16 1:34
professionalEddy Vluggen12-Oct-16 1:34 
GeneralRe: xotd Pin
Corporal Agarn12-Oct-16 1:54
professionalCorporal Agarn12-Oct-16 1:54 
GeneralRe: xotd Pin
Mark_Wallace12-Oct-16 4:46
Mark_Wallace12-Oct-16 4:46 
GeneralRe: xotd Pin
  Forogar  12-Oct-16 6:53
professional  Forogar  12-Oct-16 6:53 
GeneralA cold winter coming? Pin
Munchies_Matt11-Oct-16 22:59
Munchies_Matt11-Oct-16 22:59 
GeneralRe: A cold winter coming? Pin
den2k8811-Oct-16 23:11
professionalden2k8811-Oct-16 23:11 
GeneralRe: A cold winter coming? Pin
Munchies_Matt11-Oct-16 23:26
Munchies_Matt11-Oct-16 23:26 
GeneralRe: A cold winter coming? Pin
den2k8811-Oct-16 23:33
professionalden2k8811-Oct-16 23:33 
GeneralRe: A cold winter coming? Pin
Munchies_Matt11-Oct-16 23:41
Munchies_Matt11-Oct-16 23:41 
GeneralRe: A cold winter coming? Pin
den2k8811-Oct-16 23:49
professionalden2k8811-Oct-16 23:49 
GeneralRe: A cold winter coming? Pin
Munchies_Matt12-Oct-16 4:03
Munchies_Matt12-Oct-16 4:03 
GeneralRe: A cold winter coming? Pin
Richard Deeming12-Oct-16 3:58
mveRichard Deeming12-Oct-16 3:58 
GeneralRe: A cold winter coming? Pin
den2k8812-Oct-16 4:21
professionalden2k8812-Oct-16 4:21 
GeneralRe: A cold winter coming? Pin
RossMW11-Oct-16 23:56
professionalRossMW11-Oct-16 23:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.