Http Request 'GET'

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Http Request 'GET'

Postby gkipe » Mon Jul 27, 2009 9:01 am

I know to use the AbtXmlSimpleHttpProcessor class to perform XML 'POST' commands.
What class do I use to do simple HTTP Request with a 'GET'?
Thanks,
Garet
gkipe
 
Posts: 24
Joined: Tue Feb 03, 2009 11:05 am

Re: Http Request 'GET'

Postby gkipe » Mon Jul 27, 2009 3:37 pm

Ignore my post, I found some code.
The WinHttpClient library is open source and is available on VAStGoodies.com.
Thank you.
gkipe
 
Posts: 24
Joined: Tue Feb 03, 2009 11:05 am

Re: Http Request 'GET'

Postby benvandijk » Tue Jul 28, 2009 4:14 am

Garet,

If you know how to do a POST, you can do the same for a GET.
The default command for the AbtXmlSimpleHttpProcessor is GET

greetz, Ben
benvandijk
 
Posts: 45
Joined: Sun Feb 25, 2007 7:14 am
Location: Arnhem, Netherlands

Re: Http Request 'GET'

Postby jtuchel » Tue Jul 28, 2009 11:08 am

If by simple you mean really simple GET of an HTTP document, without XML processing or such, it's as simple as loading Sst and inspecting

(SstHttpClient fetch: 'http://www.objektfabrik.de') contents

No need for an external library or such. It's another thing if you have high throughput needs or need SSL.

cu, Joachim
jtuchel
[|]
 
Posts: 245
Joined: Fri Oct 05, 2007 1:05 am
Location: Ludwigsburg, Germany


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest