PDA

View Full Version : proxy comand



Unregistered
05-15-2004, 07:12 PM
i'm sorry because this is off topic but someone know the telnet comand for get a page with proxy? i want create a program who support proxy but i don't know how it work. tank you

jbarbera2
05-16-2004, 09:40 PM
At first, sorry, i have a bad english.
This is a head that you can use in a app.
This code have to finnish with CRLF + CRLF.

GET http://www.domain.com HTTP/*.*
Host: proxy.com
Connection: close
Accept: */*

For example, in a VB file using winsock control, you can put:

Dim a as string
a="GET http://www.domain.com HTTP/*.*" & vbCrLf & "Host: proxy.com" & vbCrLf & "Connection: close" & vbCrLf & "Accept: */*" & vbCrLf & & vbCrLf
winsck*.SendData a

The response is:

HTTP/*.0 200 OK
Date: Mon, *7 May 2004 00:50:** GMT
P*P: policyref="http://www.domain.com/xxx/xxx.", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"
Cache-Control: private
Vary: User-Agent
Content-Type: text/html
X-Cache: MISS from proxy.com
Proxy-Connection: close

The response finish with CRLF + CRLF

I don't know if i have u helped.

Bye.

<p align="center">
<img src="http://www.danasoft.com/vipersig.jpg">
</p>

Unregistered
05-17-2004, 05:26 PM
it is what i want know, but when i test this the proxy send messages :

HTTP/*.* 400 Bad Request
Server: Microsoft-IIS/5.0
Date: Mon, *7 May 2004 20:2*:24 GMT
Connection: close
Content-Type: text/html
Content-Length: 87

<html><head><title>Error</title></head><body>The parameter is incorrect. </body></html>

help me plz
ps. i've changed proxy.com whit proxy's ip or host and www.domain.com with page who i want see. i've another problem: when i get the page i dont'n know how visualize it in the form. what command i can use???

fEš·.·šEr
05-17-2004, 06:09 PM
Originally posted by Unregistered
.................... i want create a program who support proxy but i don't know how it work. tank you
Hi
Before trying to create a program like this one (http://fever.resourcez.com/tmp/TM.zip) to handle proxy's, I would strongly recommend to start with a lower scale understanding "sockets", "streams", "TCPclient & TCPservers"..
For this, you need to acquire some fine books that you could find here (http://www.amazon.com/exec/obidos/external-search/*04-527*86*-5**5*4*?tag=opera-20&index=blended&keyword=TCP+books) or elsewhere..
In addition to that, try to stick with C/C++, this will give a great deal of flexibility while maintaining the highest level of reliability.
fEš·.·šEr (http://fever.resourcez.com)

Unregistered
05-18-2004, 10:57 AM
i've connected explorer at my computer how proxy (*27.0.0.* prt *0) then i've listen the *0 and thi is the 2 result:
GET http://www.manowar.it/ HTTP/*.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept-Language: it
Cookie: phpbb2mysql_data=s%*A0%*A%22%22%*B
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.*)
Host: www.manowar.it
Proxy-Connection: Keep-Alive

GET http://www.google.it/ HTTP/*.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept-Language: it
Cookie: PREF=ID=**fd**2f4*5bda56:LD=it:TM=*08**47*0*:LM=*08**47*0*:S=Ixq7ohucEpfqVtj5
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.*)
Host: www.google.it
Proxy-Connection: Keep-Alive

BUT THEY DON'T GO (in really don't go explore covered by proxy)
an at last: excuse me for my englisch, but i'm Italian