• Stars
    star
    243
  • Rank 166,489 (Top 4 %)
  • Language ActionScript
  • License
    MIT License
  • Created over 16 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

HTTP Client for AS3

An HTTP/HTTPS client library for Actionscript 3.

This is really old and unsupported!

Building

To build the swc:

compc -load-config=build-swc.xml

To build and run tests under airake:

rake
rake test
rake adl

For info on airake, which is used to build and test see: http://airake.rubyforge.org/ and http://github.com/gabriel/airake/tree/master

Info

If anybody from Adobe is reading this: Please add outputProgress event to Socket. (This is the same behavior as outputProgress event in FileStream?) Otherwise it is impossible to determine the ouput progress on socket writes.. see http://rel.me/2008/1/17/socket-output-progress-in-air for more info.

Everyone else: Vote for the fix!

In order to use flash.net.Socket in a Flash sandbox environment, you need to have a flash socket policy server. (AIR does not have this restriction.) Look at http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html. To debug in the environment, I would use a standalone flash debug player with logging configured and you will see it attempt to connect to flash socket policy server at port 843. Because of this restriction, this library might be more suited for AIR apps. HTTPS doesn't always work. There are some minor bugs with the as3crypto library, so for example https at yahoo and yahoo owned domains (like delicious) don't currently work.

Goals

The goals for this project are:

  • Learn the HTTP protocol by trying to implement a client.
  • Use AS3Crypto TLSSocket support for implementing HTTPS.
  • Use it as a replacement for Flash's URLRequest/URLStream API.
  • Support the Flash and AIR runtimes.

Working:

  • GET, HEAD, PUT, POST, DELETE, PATCH
  • multipart/form-data (PUT, PATCH and POST)
  • HTTPS support using AS3Crypto TLS
  • Post with application/x-www-form-urlencoded
  • Reading chunked (Transfer-Encoding)

Next to implement:

  • The other http verbs
  • Connection keep-alive
  • gzip compression
  • ...

For examples see, EXAMPLES

More Repositories

1

yajl-objc

Objective-C bindings for YAJL (Yet Another JSON Library) C library
C
670
star
2

CaptureRecord

User + Screen Recording iOS SDK
Objective-C
342
star
3

GHKit

Utilities and categories for Objective-C
Objective-C
260
star
4

ffmpeg-iphone-build

Build scripts for building ffmpeg on iPhone
Shell
221
star
5

MPMessagePack

MessagePack implementation for Objective-C / msgpack.org[Objective-C]
Objective-C
179
star
6

capitate

Capistrano recipes, plugins and templates.
Ruby
78
star
7

NAChloride

Libsodium for Objective-C
Objective-C
67
star
8

font-detect-js

Font detection using Javascript and Flash
HTML
64
star
9

xcode-themes

XCode Themes
49
star
10

shrub

S3 Proxy for Google App Engine
Python
45
star
11

airake

Rake tasks and generators for Adobe AIR
Ruby
14
star
12

GHGLUtils

OpenGL Utilities for OSX and iOS
Objective-C
14
star
13

GHODictionary

Ordered dictionary
Objective-C
13
star
14

GRUnit

Unit testing for iOS
Objective-C
12
star
15

json-objc-perf

Basic perf tests for Objective-C JSON frameworks
Objective-C
12
star
16

turing-fluid-osx

OSX version of Turing Fluid demo http://cake23.de/turing-fluid.html
Objective-C
10
star
17

KBPGP

PGP for iOS/OSX using kbpgp.js and JavaScriptCore
JavaScript
10
star
18

TSTripleSec

Objective-C implementation of TripleSec
Objective-C
10
star
19

NACrypto

Advanced crypto library. You may want to use NAChloride (libsodium/NaCl) instead.
C
6
star
20

KBKeybaseAPI

Keybase.io API client for iOS/OSX
Objective-C
6
star
21

PointSpriteShader

Example OS X OpenGL project for displaying variable size point sprites with shaders
Objective-C
4
star
22

FFProcessing

C++
3
star
23

GHUITable

Extensions for UITableView and UICollectionView
Objective-C
3
star
24

YOCView

Simplifying UIView and UIViewController interactions.
Objective-C
3
star
25

gabriel.github.com

2
star
26

GHBigNum

Bignum for Obj-C (OpenSSL)
Objective-C
2
star
27

pre-commit-golang

Shell
2
star
28

status-back

For debugging connections
Python
1
star