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

Pages: 1-

I suck at HTTP.

Name: Anonymous 2010-11-20 17:24

Hey /prog/...

I don't know jack about HTTP, but I'm trying to make an autovoter in ruby. Is this how it should look?

require 'net/http'
require 'uri'

url = URI.parse('http://polls.polldaddy.com/vote-js.php?p=3844748&b=1&a=17477211,&o=&va=0&cookie=0&url=http%3A//www.birthornot.com/')
1000000.times do
res = Net::HTTP.start(url.host, url.port) { |http| http.get('/vote-js.php?p=3844748&b=1&a=17477211,&o=&va=0&cookie=0&url=http%3A//www.birthornot.com/')
}
end

Name: Anonymous 2010-11-20 17:46

If it looks like Ruby it looks wrong.

Name: Anonymous 2010-11-20 18:08

>>2

Ignoring the language used to use it, is this proper HTTP?

Name: Anonymous 2010-11-20 18:10

>>3
And how does it work? What is your question again? And why are you http.getting the string you just have parsed?

Name: Anonymous 2010-11-20 18:12

Why don't you try it the fuck out and see?

Name: Anonymous 2010-11-20 18:29

>>5
I don't think sex heals stupidity.

Name: Anonymous 2011-02-03 3:22

Name: Anonymous 2013-09-01 19:25



            __,,.. --──- 、..,,_        ,. -──────
        ,. ''"´     '⌒)_,.-、  `';       ,'
    ,. -‐<       、_,,... ---──'-、      i 何これ
   ;'     `ヽ._,,..ゝ-<.,__,,..-‐-、,    ';ヽ.    |
   !   (⌒ヽノ !   ! ,' /!  ! `''ー、イ  !   ! キュウリじゃない
   ';       八 ,ゝ、_」ィ!__/ .!  ;' ! ; ヽ./  ∠.._
   ',   ',  /  `i ;'´;'ハ  └、;_,.ィ /   ハ    `'' ー----------‐
    i   Y`ヽ/!_,!i !_,ソ    !ハ`yiヽ、/ /
   ,'   /  .!  'ひ   ..::::.. '-'_ノi Y  ',  なんか苦い
 _.ノ   ,ヘ._  ',  '、   ,.-‐-、   ''!八  ! 
  `( r'  )`ヽヽ  )、 し--‐’ ,.,イ  ! )ノ    _)
   )' />‐‐'<Yヽ、`' T7"´ノレヘノ (     ,.:'";';
    ,.':::/     ヽr、 \.」 `!」ヽ.       ノ_);':;'
    /:::;' /こコ  iヽヘ/ム、!」,  i     ,.'´_;',:;'
   ;':::7 /   !  ト、    ハ   V !.  ,..-r'つ'、ヾ'
    i:r!        ,'  ヽ、 ○ / !//  !/;'(__,ソ
   !/`  r-   イ    `F'   !'´    !、__ノ!
  /   '    !  _,,..イ  `ゝ、i       _,:'

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