Tags: IP Address Lookup, Information, and Location, Test Your Internet Connection Speed
|
#1
|
|||
|
|||
|
I use that strings: const char * IP = "www.whatismyip.com"; const char * PAGE = "/automation/n09230945.asp"; I use this command: GET /automation/n09230945.asp HTTP/1.1 Host: GetHtml User-Agent: Phoenix Software Connection: Close but I receive that: HTTP/1.1 301 Moved Permanently Connection: close Date: Tue, 05 May 2009 18:36:57 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Location: http://verycurious.com/catchall-erro...length-gethtml Cache-Control: private Content-Length: 0 ıııııııııııııııııııııııııııııııııııııııııııııııııı ı ıııııııııııııııııııııııııııııııııııııııııııııııııı ı ıııııııııııııııııııııııııııııııııııııııııııııııııı ı ıııııııııııııııııııııııııııııııııııııııııııııııııı ı ıııııııııııııııııııııııııııııııııııııııııııııııııı ı ıııııııııııııııııııııııııııııııııııııııııııııııııı ı ıııııııııııııııııııııııııııııııııııııııııııııııııı ı ıııııııııııııııııııııııııııııııııııııııııııııııııı ı |
|
#2
|
||||
|
||||
|
Try going straight to the automation page.
http://www.whatismyip.com/automation/n09230945.asp Let me know what happens. |
|
#3
|
||||
|
||||
|
Brian's right (he usually is of course) - go straight to the page.
I'm a little surprised by this and I haven't been able to reproduce this with curl and TcpTunnel. curl is very useful for doing GETs (and other stuff) from the command line. And TcpTunnel's a simple "pipe" with which you can see what's going over the wire. http://www.vakuumverpackt.de/tcptunnel/ So if you do: java TcpTunnelGui 9000 www.whatismyip.com 80 then curl http://localhost:9000/automation/ You'll see the HTTP to the server as: Quote:
Quote:
I hope this is useful to you. Robin |
|
#4
|
|||
|
|||
|
I think you have your command wrong. You're sending "GetHtml" as the host to the server which isn't being found. Then you get the redirect.
Quote:
Quote:
|
|
#5
|
||||
|
||||
|
Jim
You are 100% correct. Thanks. Robin |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|