[vip-help] Issue with accessing bluepill server through android app

Han, Yue han380 at purdue.edu
Thu Mar 7 17:45:09 EST 2024


Hi Nandini,

I saw you specify the https on the link 38.

I think the problem is that you cannot directly access to that file. For example, if you click your destination “https://bluepill.ecn.purdue.edu/~panden/getImage.php”"
What you will get is 403 forbidden in your browser.
The reason is we set control to your personal folder, to ensure others cannot direct access your personal folder via a link.

However, you can create a folder named “public_html” under your personal home directory on bluepill, you will find this founder can be access via link https://bluepill.ecn.purdue.edu/~panden
Then put your php file in this folder, then you are able to access the php file using the link “https://bluepill.ecn.purdue.edu/~panden/getImage.php””

Best,
*****
Yue Han
Ph.D. Candidate
Research Assistant
Video and Image Processing Laboratory (VIPER)
School of Electrical and Computer Engineering
Purdue University
465 Northwestern Avenue
West Lafayette, IN 47907-2035
U.S.A.
Telephone: +1 765 637 3729
email: han380 at purdue.edu
URL: https://lorenz.ecn.purdue.edu/~han380/
*****

On Mar 7, 2024, at 17:00, Edward Delp <ace at purdue.edu> wrote:

bluepill will NOT accept HTTP requests. It only will accept HTTPS request.

This allows a secure

On 3/7/2024 4:18 PM, Nandini Mukul Pande wrote:
Hello,

I'm trying to connect my Android app to the bluepill server, however, the library I'm using to send the HTTP request, Volley, is giving me a 403 authentication error within my code. I discussed the issue with another team and we tried a couple of things but the issue still wasn't resolved.

The code pertaining to this issue is in gogs under the Traffic Sign project. It's in the file Identify.java (app/src/main/java/com/example/trafficsignprototype/Identify.java), specifically at lines 73-99. The PHP code I am using to get the image from the app is also housed in the Traffic Sign project under the name getImage.php. It is the same php code used in the plant identification from the Spring 2023 project to retrieve the image. I am also attaching a screenshot of the errors I am receiving for reference. What I've tried so far:


  1.
manually sending my username and password using a getHeaders function (didn't work and security risk so deleted it).
  2.
creating a file in my bluepill server with the image name and using chmod to allow write permissions
  3.
using chmod on getImage.php

I am testing my app on the built in Android emulator, which emulating a Pixel 4 with API 30 (this is because it's the same model as the physical device we will be using for testing).

Please let me know what else I can try or if you need further details.  Thank you .


--

============================================================
Note: my email address has changed slightly,
in the future please use:  ace at purdue.edu<mailto:ace at purdue.edu>

Professor Edward J. Delp
The Charles William Harrison Distinguished Professor of
Electrical and Computer Engineering
and
Professor of Biomedical Engineering
and
Professor of Computer Science (Courtesy)
and
Professor of Psychological Sciences (Courtesy)

Purdue University
School of Electrical and Computer Engineering
465 Northwestern Avenue
West Lafayette IN 47907-2035
USA

Email: ace at purdue.edu<mailto:ace at purdue.edu>

Telephone: +1 765 494 1740
Fax: +1 765 494 3358

URL: https://engineering.purdue.edu/~ace/
     http://www.viperlab.org/<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.viperlab.org%2F&data=05%7C02%7Cvip-help%40ecn.purdue.edu%7C3f47d64b03e54091825108dc3ef83e2a%7C4130bd397c53419cb1e58758d6d63f21%7C0%7C0%7C638454483106402558%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=8bCUHuPYyiWVBS%2F4dRV1ARAHT7DrDoUmzONTd6Tfc9o%3D&reserved=0>
     http://orcid.org/0000-0002-2909-7323<https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Forcid.org%2F0000-0002-2909-7323&data=05%7C02%7Cvip-help%40ecn.purdue.edu%7C3f47d64b03e54091825108dc3ef83e2a%7C4130bd397c53419cb1e58758d6d63f21%7C0%7C0%7C638454483109058941%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=QqUKIsgh7WrPtBPFsr%2FOmiZ25%2F5c5VGcLYuUz4XDTMk%3D&reserved=0>

Map Location:
Latitude: N 40 25.767
Longitude: W 86 54.744
Datum: WGS72

ID: B-263-54

"Badges? We ain't got no badges. We don't need no badges.
I don't have to show you any stinking badges!"
============================================================


--
vip-help mailing list
vip-help at ecn.purdue.edu<mailto:vip-help at ecn.purdue.edu>
https://engineering.purdue.edu/ECN/mailman/listinfo/vip-help

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ECN/mailman/archives/vip-help/attachments/20240307/9b1fdeab/attachment-0001.htm>


More information about the vip-help mailing list