PDA

View Full Version : Accept-Encoding: gzip



martin
21-03-2009, 11:45
Hello everybody,

I discovered ThinBasic 3 days ago and I just love it!  :P

But I have a problem and I hope that some of you can solve it. I need to know how to send the "Accept-Encoding: gzip" header. Can I do this with an INET command or any other command? I really need this to acces the Discogs API http://www.discogs.com/help/api

Many thanks in advance for your help!

Martin

martin
21-03-2009, 12:54
I am a little bit futher...I think a must use COM_CreateObject. I will try that...but in the meantime suggestions are welcome ;-)

Michael Hartlef
21-03-2009, 13:31
Hi martin, welcome on the board.

I guess you have to wait for Eros as he knows things much much better when it comes to thinBasic and website communication.

Michael

martin
22-03-2009, 16:48
Thanks, I hope he is back here soon because I still can't figure it out how this must done :roll:

martin
29-03-2009, 16:58
Problem solved. I made a mistake in the request-url. It works fine now with INET. :eusadance:

Petr Schreiber
29-03-2009, 17:06
Congratulations,

Eros is ill so he could not respond, and I do not understand this things.
So you did not have to use COM in the end?


Petr

martin
30-03-2009, 13:08
No, that was not necessary.
If I understand correctly, INET sends an Accept-Encoding command automaticly by itself.