Why can't I connect with a non-browser app to this url?

Does anyone know why this url is rejecting connection requests sent by a non-browser app (wget, curl, elinks!): Http://sube.garanti.com.tr

https://sube.garanti.com.tr/isube/login/en

This is my bank account and I am trying to do my transfers with a script, but as you can see these super secure servers don't let me.

Any suggestions?

Azer

0


a source to share


5 answers


Well I tried this:

wget http://sube.garanti.com.tr

      

waiting time.

but doing this:



wget https://sube.garanti.com.tr/isube/login/en

      

gave me the source on the site. This is the frame base and I am getting the frame definitions.

The reason for this is probably because the site is not accessible via a regular (http) connection, you must use a secure (https) connection.

However, generally, I would try to set the User-Agent: header for any such application, as pjc50 pointed out.

+1


a source


Try the following:

wget --referer="http://www.google.com" --user-agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" --header="Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" --header="Accept-Language: en-us,en;q=0.5" --header="Accept-Encoding: gzip,deflate" --header="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" --header="Keep-Alive: 300"

      



This can trick the site into thinking you have a "legitimate" browser

+2


a source


Maybe because you need to go to before doing anything on that URL?

You can access sites using Perl LWP, for example by submitting registration forms correctly.

PS I cannot connect to sube.garanti.com.tr with my browser.

0


a source


AFAIK wgte, curl opens server side site. So check your firwall (if any) and see if it's blocked.

Also, the site can also block incoming requests. This is a banking site and we can expect some security restrictions.

0


a source


Some websites check the User-Agent: header. You may need to configure the bootloader to identify itself as "Mozilla" rather than itself.

0


a source







All Articles