Arc Forumnew | comments | leaders | submit | alexpogosyan's commentslogin
1 point by alexpogosyan 4771 days ago | link | parent | on: Possible bug in if?

Thank you!

-----

1 point by alexpogosyan 4795 days ago | link | parent | on: Http requests in arc?

It worked, thank you so much.

I only had to remove (require racket/tcp) line because it was causing 'collection not found' error.

-----

1 point by zck 4795 days ago | link

You're welcome! Weird, though -- I thought the 'require line had to be there so that racket would know what 'tcp-connect is. Apparently I'm wrong; I'll have to try my code without it.

Good luck with the rest of it, though -- this doesn't provide any sort of http header creation, which is somewhat annoying, but if you write some functions for it, I'm sure we'd be interested in seeing them.

-----

1 point by alexpogosyan 4795 days ago | link

Maybe it's because I'm using mzscheme 4.2.5 and not racket?

-----

1 point by zck 4795 days ago | link

Ah, I didn't actually need it either -- I was thinking of some other code I was writing. To call Racket's 'HMAC-SHA1, you need:

  (require web-server/stuffers/hmac-sha1)
  (require net/base64)
But not for tcp-connect. If you make a library for Amazon interaction, that might be useful to other people. I'd be interested in seeing the code, at least.

-----