Changeset 32088


Ignore:
Timestamp:
01/04/15 17:42:16 (8 years ago)
Author:
obi
Message:

tithek optimize streamcould

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/streamcloud.h

    r30269 r32088  
    7676        }
    7777
    78         waitmsgbar(16, 0, _("Connect with Hoster wait 16 seconds"), 1);
     78//      waitmsgbar(16, 0, _("Connect with Hoster wait 16 seconds"), 1);
    7979       
    8080        titheklog(debuglevel, "/tmp/streamcould1_get", NULL, NULL, NULL, tmpstr);
     
    132132        hash = ostrcat(hash, "hash=", 1, 0);
    133133        hash = ostrcat(hash, hashline, 1, 0);
    134         hash = ostrcat(hash, "&imhuman=Weiter+zum+Video", 1, 0);
     134//      hash = ostrcat(hash, "&imhuman=Weiter+zum+Video", 1, 0);
     135        hash = ostrcat(hash, "&imhuman=Watch+video+now", 1, 0);
    135136        hash = ostrcat(hash, "&usr_login=", 1, 0);     
    136137        hash = ostrcat(hash, usr_login, 1, 0);
     
    142143        hash = ostrcat(hash, id, 1, 0);
    143144        hash = ostrcat(hash, "&op=", 1, 0);
    144         hash = ostrcat(hash, op, 1, 0);
     145//      hash = ostrcat(hash, op, 1, 0);
     146        hash = ostrcat(hash, "download2", 1, 0);
    145147        debug(99, "hash: %s", hash);
    146148        hashlen = oitoa(strlen(hash));
    147 
     149/*
    148150        send = ostrcat(send, "POST ", 1, 0);
    149151        send = ostrcat(send, tmppath, 1, 0);
     
    155157        send = ostrcat(send, cookie, 1, 0);
    156158        send = ostrcat(send, "\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n", 1, 0);
     159        send = ostrcat(send, hash, 1, 0);
     160        debug(99, "send: %s", send);
     161*/
     162        send = ostrcat(send, "POST ", 1, 0);
     163        send = ostrcat(send, tmppath, 1, 0);
     164        send = ostrcat(send, " HTTP/1.0\r\nContent-Length: ", 1, 0);
     165        send = ostrcat(send, hashlen, 1, 0);
     166        send = ostrcat(send, "\r\nAccept-Encoding: gzip", 1, 0);       
     167        send = ostrcat(send, "\r\nHost: ", 1, 0);
     168        send = ostrcat(send, tmphost, 1, 0);
     169        send = ostrcat(send, "\r\nUser-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:30.0) Gecko/20100101 Firefox/30.0", 1, 0);
     170        send = ostrcat(send, "\r\nConnection: close", 1, 0);
     171        send = ostrcat(send, "\r\nReferer: ", 1, 0);
     172        send = ostrcat(send, link, 1, 0);
     173//      send = ostrcat(send, "\r\nCookie: ", 1, 0);
     174//      send = ostrcat(send, cokkie, 1, 0);
     175        send = ostrcat(send, "\r\nContent-Type: application/x-www-form-urlencoded", 1, 0);
     176        send = ostrcat(send, "\r\n\r\n", 1, 0);
    157177        send = ostrcat(send, hash, 1, 0);
    158178        debug(99, "send: %s", send);
Note: See TracChangeset for help on using the changeset viewer.