Thanks everyone for your valuable feedback.
I was able to figure out the issue that was happening due to the
case-sensitive nature of the loginId header, which was being normalized in
golang.

So, after adding the below snippet i was able to make it work.

req.Header["loginId"] = []string{"0610A62F"}

Ryan.





On Sun, 20 Sep 2020 at 14:49, Jesper Louis Andersen <
jesper.louis.ander...@gmail.com> wrote:

> On Sun, Sep 20, 2020 at 8:10 AM burak serdar <bser...@computer.org> wrote:
>
>> A GET request does not have a body.
>>
>>
> Murky waters ahead.
>
> RFC 2616 explicitly states that a supplied body SHOULD be forwarded by the
> server on any request type. This has led some people to use bodies on GET
> requests; ElasticSearch I'm looking at you. However, the newer RFC 7231
> explicitly states that sending a body on a GET has no determined semantics
> and that "sound" clients ought to reject such bodies. But since RFC 2616
> existed at some point, you might still find certain APIs which do expect
> GET requests with bodies, however wrong that may seem.
>
> Getting rid of mistakes is really hard once they're been used in anger.
> And HTTP is riddled with design mistakes which shouldn't have been put in,
> in hindsight. Hopefully the new section of HTTP RFCs mean we can clean up
> over time as we proceed.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/CAGrdgiVfaVwmX5P%3DNd-ZPOcFOZP-XoETwAy5%2BBTVBzsRUi1F3A%40mail.gmail.com
> <https://groups.google.com/d/msgid/golang-nuts/CAGrdgiVfaVwmX5P%3DNd-ZPOcFOZP-XoETwAy5%2BBTVBzsRUi1F3A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAJ_X8k5Me6bbTG7-2EfxDYG59Q6ksdFP3-xvBDcVKxiof2vC2g%40mail.gmail.com.

Reply via email to