 |
|
|
|
|
|
|
| Back to top |
|
 |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Mon Mar 14, 2005 7:54 pm Post subject: |
|
|
Why not offer it as a download ?, Also you should print a content type Pepz i think
text/plain |
|
| Back to top |
|
 |
dan0211 Not Yet a God

Joined: 23 Dec 2003 Posts: 395
    
|
Posted: Thu Mar 17, 2005 9:09 pm Post subject: |
|
|
| Nah, you dont print a content type when you're forwarding to another address. |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Thu Mar 17, 2005 11:16 pm Post subject: |
|
|
QUOTE(dan0211 @ Mar 17 2005, 04:09 PM) Nah, you dont print a content type when you're forwarding to another address. [right][snapback]46986[/snapback][/right]
|
I think he was talking about sending the content-type of your ingoing data, to the website itself.
FOR example, using Google's translator, you do:
| Quote: | # Request Google's translator. my $req = HTTP::Request->new (POST => 'http://translate.google.com/translate_t'); $req->content_type ('application/x-www-form-urlencoded'); $req->content ("text=$what&langpair=$from|$to"); |
_________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
dan0211 Not Yet a God

Joined: 23 Dec 2003 Posts: 395
    
|
Posted: Fri Mar 18, 2005 6:44 pm Post subject: |
|
|
QUOTE(Mat007 @ Mar 14 2005, 08:54 PM) Why not offer it as a download ?, Also you should print a content type Pepz i think
text/plain [right][snapback]46897[/snapback][/right]
|
He means
| Code: | | <br />print "Content-type: text/html\n\n"; | unless I am very mistaken.
If I'm not, then you wouldn't need to print it in this case. |
| Back to top |
|
 |
Pepper Senior Member

Joined: 30 Jul 2004 Posts: 178 Location: Auckland, New Zealand
         
|
Posted: Fri Mar 18, 2005 7:32 pm Post subject: |
|
|
| Yeah, because its simply taking them to another location |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Fri Mar 18, 2005 7:39 pm Post subject: |
|
|
/me lost another IQ point/
Content-Types don't have anything to do with returning a URL to a different site.
Is your bot printing out a certain file type? An HTML document or the binary of any type of WAV file? NO! What else would need a content-type?
Content-Types are needed with WEB-based stuff. Bots don't need Content-Types because they're not directly related to the HyperText Transfer Protocol in ANY way whatsoever.
So how many connections is this bot making to the Internet? ONE. ONE connection to figure out what URL to go to to download your wav. So where should this Content-Type go? To THAT ONE connection!
Hence, using the "POST" method to grab a URL, you need to send a Content-Type so that the HTTP knows how to process the incoming data!
If you all still don't understand this concept, then do NOT even bother replying. We already know you're f*cking morons, so don't reply yet again and prove it. <_< _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
Pepper Senior Member

Joined: 30 Jul 2004 Posts: 178 Location: Auckland, New Zealand
         
|
Posted: Fri Mar 18, 2005 7:46 pm Post subject: |
|
|
| I know content-types arn't needed for redirection, and in my case that code wasn't for bots. |
|
| Back to top |
|
 |
dan0211 Not Yet a God

Joined: 23 Dec 2003 Posts: 395
    
|
Posted: Fri Mar 18, 2005 8:45 pm Post subject: |
|
|
QUOTE(Cer @ Mar 18 2005, 08:39 PM) /me lost another IQ point/
Content-Types don't have anything to do with returning a URL to a different site.
Is your bot printing out a certain file type? An HTML document or the binary of any type of WAV file? NO! What else would need a content-type?
Content-Types are needed with WEB-based stuff. Bots don't need Content-Types because they're not directly related to the HyperText Transfer Protocol in ANY way whatsoever.
So how many connections is this bot making to the Internet? ONE. ONE connection to figure out what URL to go to to download your wav. So where should this Content-Type go? To THAT ONE connection!
Hence, using the "POST" method to grab a URL, you need to send a Content-Type so that the HTTP knows how to process the incoming data!
If you all still don't understand this concept, then do NOT even bother replying. We already know you're f*cking morons, so don't reply yet again and prove it. <_< [right][snapback]47006[/snapback][/right]
| You know what Cer, you are wrong. It seemed obvious to everyone else we weren't talking about bots. So calling us "f*cking morons" is really making YOU look like the "f*cking moron". |
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Fri Mar 18, 2005 10:27 pm Post subject: |
|
|
QUOTE(Pepper @ Mar 14 2005, 06:35 PM) If your gonna use it on a site (Hey, why not?  ) you could allways do this |
Cer, from then on everybody knew it was about a site, i'd quit while before you make it worse... |
| Back to top |
|
 |
Pepper Senior Member

Joined: 30 Jul 2004 Posts: 178 Location: Auckland, New Zealand
         
|
Posted: Sat Mar 19, 2005 7:40 am Post subject: |
|
|
QUOTE(Cer @ Mar 18 2005, 11:39 AM) /me lost another IQ point/ [right][snapback]47006[/snapback][/right]
|
You lost a IQ point because of yourself that time <_<  |
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Sat Mar 19, 2005 2:20 pm Post subject: |
|
|
| Quote: | | This forum is about bots, your posts should be too. Regardless of the name/description of the forum the assumed topic and limit of the topic is bots. |
| Quote: | | Bot-Depot > Bot Development > Commands |
Why isn't this about bots? _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Sat Mar 19, 2005 3:07 pm Post subject: |
|
|
| it started about bots and then turned around..... |
|
| Back to top |
|
 |
|
 |
|
|
 |