Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

MacChan

Name: seven 2007-12-25 3:40

Hey, macfag here. Im writing a tool for the different chans for us fellow macfags, with Cocoa and XCode 3, but im having some trouble trying to figure out how to make a post to the boards. My idea was just to use a WebView, make it load up the board's front page

NSMutableURLRequest *urlRequest;
urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://img.4chan.org/b/"]];
[urlRequest setValue:@"http://img.4chan.org/b/" forHTTPHeaderField:@"Referer"];
[[webView mainFrame] loadRequest:urlRequest];

 and just fill out the form with the DOM methods and submit the form, but for some reason it doesnt want to let me fill in the file upload form, which makes posting images impossible. Anyone know how to get this done? I'd like to avoid crafting my own HTTP request from scratch, thats alot of work to support all the different types of boards each chan has.

Name: Anonymous 2007-12-25 4:14

gb2/RFC2616

Yes, EXPERT PROGRAMMERS memorize RFC numbers instead of their contents.

Name: Anonymous 2007-12-25 4:59

we have a tool, it's called a browser.

also, objc, GTFO.

Name: Anonymous 2007-12-25 7:27

>>1
I'd like to avoid crafting my own HTTP request

I'd like to make a cake without mixing ingredients or using an oven. waaaaah.

Name: Anonymous 2007-12-25 7:34

>>4
Merry Christmas, bad analogy man! Long time no see.

Name: Anonymous 2007-12-25 7:44

>>5
Merry Christmas, Macfag! Long time no s- wait, nevermind. Fuck off back to /g/.

Name: Anonymous 2007-12-25 7:45

>>5
He's analogy is fine.

Name: Anonymous 2007-12-25 10:10

>>7
His
Fixed.

>>1
Get the fuck outa /prog/ fucking lamer.

Name: Anonymous 2007-12-25 11:29

i think macfag is a pretty cool guy. eh trolls [/spoiler]/prog/[spoiler] and doesn't afraid of sage

Name: Anonymous 2007-12-25 12:49

>>9
i think anonymous is a pretty cool guy. eh reverses [/tags][tags] and isn't check his posts

Name: Anonymous 2007-12-25 12:59

The SICP is a lie

Name: Anonymous 2007-12-25 14:28

>>11
gb2/games/

Name: Anonymous 2007-12-26 5:27

>>3
At least objc is one of smalltalk's bastard children.
Better than Sepples and PHP

Name: Anonymous 2009-03-18 2:59

Don't call me gay, but I need some mary jay!

Marijuana MUST be legalized.

Don't change these.
Name: Email:
Entire Thread Thread List