Re: REST call using IdHTTP.GET not working

Giganews Newsgroups
Subject: Re: REST call using IdHTTP.GET not working
Posted by:  Remy Lebeau \(Indy Team\) (re…@lebeausoftware.org)
Date: Thu, 24 Feb 2011

"Gerry" <gpettip…@mmspos.com> wrote in message
news:900AB19FB5D2E340gpettip…@mmspos.com...

> I get an "HTTP/1.1 401 Unauthorized" response.

Are you specifying any values in the Request.UserName and Request.Password
properties?

> If I take exactly what gets used in the GET and I put it into my FireFox
> address bar, I get a session token back.

Use a packet sniffer, such as Wireshark, to see the actual HTTP
request/reply traffic so you can compare FireFox's requests to TIdHTTP's
requests.

--
Remy Lebeau (TeamB)

Replies

None

In response to

REST call using IdHTTP.GET not working posted by Gerry on Wed, 23 Feb 2011