login about faq
SocketConnect: www.certainty3d.com:80

HostnameResolve: www.certainty3d.com


SocketConnected: www.certainty3d.com:80

RequestHeader: GET /projectstore/XRu76MqZLu/metadata/Tiles%203.dot HTTP/1.1
Accept: */*
Accept-Encoding: gzip
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Language: en-us,en;q=0.5
User-Agent: Chilkat/1.0.0 (+http://www.chilkatsoft.com/ChilkatHttpUA.asp)
Host: www.certainty3d.com
Connection: Keep-Alive

HttpInfo: Begin reading response

RecvByteCount: 1

RecvBytesPerSec: 21

HTTP/1.1 403 Forbidden
Date: Mon, 28 Oct 2013 18:17:10 GMT
Server: Apache
Last-Modified: Fri, 30 Aug 2013 17:13:28 GMT
Accept-Ranges: bytes
Content-Length: 18156
Keep-Alive: timeout=5, max=75
Connection: Keep-Alive
Content-Type: text/html

HttpStatusCode: 403

HttpInfo: Begin reading response body...

ResponseContentLength: 18156

PercentDone: 6

PercentDone: 14

PercentDone: 22

PercentDone: 30

PercentDone: 38

PercentDone: 46

PercentDone: 54

PercentDone: 62

PercentDone: 70

PercentDone: 79

PercentDone: 87

PercentDone: 95

PercentDone: 100

    DllDate: Aug 15 2013
    UnlockPrefix: RIEGLUHttp
    Username: MAURICIOPC:MTerneus
    Architecture: Little Endian; 32-bit
    Language: .NET 2.0
    VerboseLogging: 0
    backgroundThread: 1
    url: http://www.certainty3d.com/projectstore/XRu76MqZLu/metadata/Tiles 3.dot
    toLocalPath: C:\ZF\Tiles 3.dot
    localFileAlreadyExists: 0
          httpMethod: GET
          requestUrl: http://www.certainty3d.com/projectstore/XRu76MqZLu/metadata/Tiles%203.dot
          Connecting to web server...
          httpServer: www.certainty3d.com
          port: 80
          ConnectTimeoutMs_1: 10000
          calling ConnectSocket2
          IPV6 enabled connect with NO heartbeat.
          connectingTo: www.certainty3d.com
            Resolving domain name (IPV4) via gethostbyname
          GetHostByNameHB_ipv4: Elapsed time: 0 millisec
          myPort_1: 55004
          connect successful (1)
          Turning on TCP_NODELAY.
            SO_SNDBUF: 8192
            SO_RCVBUF: 8192
            TCP_NODELAY: 1
          connectElapsedMs: 46
          -- BuildGetRequest --
          Not auto-adding cookies.
          sendElapsedMs: 0
          StatusCode: 403
          StatusText: Forbidden
          contentLength: 18156
          Reading response body...
          readResponseElapsedMs: 234
    bFileDeleted: 1
    totalElapsedMs: 296

Why is this failing? works fine in C++ Fails in .net

        Public Function DownloadFile(ByVal url As String, ByVal destination As String) As Boolean

        Dim http As New Chilkat.Http()

        Dim success As Boolean

        '  Any string unlocks the component for the 1st 30-days.
        success = http.UnlockComponent("xxxxxxxxxxx")
        If (success <> True) Then
            Exit Function
        End If

        '  Download the Python language install.
        '  Note: This URL may have changed since this example was created.
        success = http.Download(url, destination)
        If (success <> True) Then
            Return False
            MsgBox("Python Download Complete!")
            Return True
        End If

        'Dim success As Boolean = _http.Download(url, destination)

        'If success = False Then
        '    Debug.Print(_http.LastErrorText)
        '    Return False
        'End If

        'Return True

    End Function

asked Oct 28 '13 at 14:22

iifuzz's gravatar image


edited Nov 05 '13 at 08:40

Any help getting this working would be great :( Everything is working except Download and DownloadResume. I am able to get web page source, post, etc.. Downloading works from C++

(Oct 29 '13 at 14:32) iifuzz

A website can behave differently based on the User-Agent header field. For example, if you browse to a website from your iPhone, a website might recognize the user-agent as being a smart phone and then serve a different version of the site. Likewise, maybe some websites only want interactive users logging in, and check to see if it's FireFox, IE, or Chrome, and if not then rejects the request. Of course, your application could be truly interactive, it's just that it might use Chilkat HTTP to do the HTTP communications..


answered Nov 05 '13 at 14:29

chilkat's gravatar image

chilkat ♦♦

The 403 response code (HTTP/1.1 403 Forbidden) indicates that a login/password is required to access the resource.


answered Oct 29 '13 at 17:34

chilkat's gravatar image

chilkat ♦♦

Thanks for the response... There is no login or password. Like i said, the same link works fine when using Chilkat through c++

For example, this link: http://www.certainty3d.com/pdf/technotes/MobileLiDARProjectRequirements.pdf

(Nov 05 '13 at 08:36) iifuzz

1 more thing to add, I have tried giving the file full permissions. CHMOD 777

(Nov 05 '13 at 08:45) iifuzz

Need to use http.MimicIE for the download to work.. Not sure why?


answered Nov 05 '13 at 09:31

iifuzz's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 28 '13 at 14:22

Seen: 993 times

Last updated: Nov 05 '13 at 14:29

powered by OSQA