login about faq

I did try to use the http php-Extension for Linux which works just fine. But if I add a (working) Proxy, it can not get the file anymore.

Maybe I am using the Proxy functions wrong?

Case1:

//works
$success = $http->Download('www.jb-lighting.de/download/manual/40.pdf',$localFilePath);

Case2:

//does not work
$http->put_ProxyDomain("173.192.128.238");
$http->put_ProxyPort(25);
$success = $http->Download('www.jb-lighting.de/download/manual/40.pdf',$localFilePath);

asked Oct 30 at 08:10

Loki1's gravatar image

Loki1
1


I have tested with several Proxy and even different Port for each individual Proxy. No luck. Am I missing an important step again?

link

answered Nov 03 at 18:22

Loki1's gravatar image

Loki1
1

You need to pass a proper URL to Download. For example "http://www.jb-lighting.de/...." or "https://..."

You're missing the "http://"

link

answered Nov 03 at 18:42

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Some IP do work & as well with Domain name. Some I need to enter with Domain, because the IP is not working. put_ProxyDomain did sometimes work with IP even without http://.

Does put_ProxyDomain("127.0.0.1") checkup it is localhost? And why is it sometimes not working (get Hostname from IP)?

This one currently works with both:

IP Address : 168.1.47.248

Location : Australia (95% accuracy)

Host Name : f8.2f.01a8.ip4.static.sl-reverse.com

$http->put_ProxyDomain("168.1.47.248");
$http->put_ProxyPort(8080);

and

$http->put_ProxyDomain("f8.2f.01a8.ip4.static.sl-reverse.com");
$http->put_ProxyPort(8080);

I did check with:

$html = $http->quickGetStr("www.whatismyip.com");
link

answered Nov 03 at 18:56

Loki1's gravatar image

Loki1
1

edited Nov 03 at 18:57

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×186
×35
×2

Asked: Oct 30 at 08:10

Seen: 248 times

Last updated: Nov 03 at 18:57

powered by OSQA