Главная страница


ru.nethack

 
 - RU.NETHACK -------------------------------------------------------------------
 From : Dmitry Lukashin                      2:5022/120.80  26 Jan 2005  01:59:20
 To : Vladimir Kochnev
 Subject : HTTP POST
 -------------------------------------------------------------------------------- 
 
 25 янв 05 20:50, Vladimir Kochnev [2:5020/829.610] wrote to All:
 
  VK> как это реализовать, если конекаться не браузером, а обычным телнетом
  VK> или неткатом на 80 порт www.blablabla.ru?
 
 ===
 $txt=urlencode('namee').'='.urlencode($nick).'&'.urlencode('email').'='.urlencod
 e('').'&'.
      urlencode('text').'='.urlencode($text).'&'.urlencode('send').'='.urlencode(
 'отправить');
 
 $what = "POST /?sector=forum&cid=".$part."&tid=".$topic_num." HTTP/1.1\r\n".
                 "Accept: */*\r\n".
         "Referer:
 http://[target.com]/?sector=forum&cid=".$part."&tid=".$topic_num."\r\n".
         "Accept-Language: ru\r\n".
         "Content-Type: application/x-www-form-urlencoded\r\n".
         "Accept-Encoding: gzip, deflate\r\n".
         "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
 1.0.3705)\r\n".
         "Host: [target.com]\r\n".
         "Content-length: ".strlen($txt)."\r\n".
         "Connection: Keep-Alive\r\n".
         "Cache-Control: no-cache\r\n".
         "\r\n".
         $txt;
 ===
 
 Если нужно через прокси - после POST укажи полное имя хоста.
 
 P.S. urlencode:
 ===
 Returns a string in which all non-alphanumeric characters except -_. have been
 replaced with a percent (%) sign followed by two hex digits and spaces encoded
 as plus (+) signs. It is encoded the same way that the posted data from a WWW
 form is encoded, that is the same way as in application/x-www-form-urlencoded
 media type.
 ===
 
   WBR, Дмитрий Лукашин      nullevent@gmail.com       [Ru.Hackzona]
 --- GoldED+/LNX 1.1.5-41013
  * Origin: The quick brown fox jumps over the lazy dog (2:5022/120.80)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 HTTP POST   Vladimir Kochnev   25 Jan 2005 21:50:50 
 HTTP POST   Dmitry Lukashin   26 Jan 2005 01:59:20 
 HTTP POST   Vladimir Kochnev   26 Jan 2005 16:50:38 
 HTTP POST   Dmitry Lukashin   26 Jan 2005 20:30:04 
 Re: HTTP POST   Artem Ivanov   26 Jan 2005 05:08:36 
 HTTP POST   Vladimir Kochnev   27 Jan 2005 00:38:46 
 Re: HTTP POST   Konstantin   26 Jan 2005 11:20:09 
Архивное /ru.nethack/386741f6c424.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional