Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get destination url on Parse.Cloud.httpRequest with redirect #4923

Closed
macklus opened this issue Aug 2, 2018 · 1 comment
Closed

Comments

@macklus
Copy link

macklus commented Aug 2, 2018

Issue Description

My cloud code use Parse.Cloud.httpRequest with followRedirects: true to get remote info, but i need to get also the new url after 301 redirect

Steps to reproduce

Get any URL who return 301 redirect to a new content. In response, you get new destination content, but cannot know which url is new one.

Expected Results

Not sure how this can be implement. Maybe as a value on httpResponse.headers object

Environment Setup

  • Server
    • parse-server version (Be specific! Don't say 'latest'.) : 2.8.2
    • Operating System: Ubuntu 17.10
    • Hardware: Intel(R) Xeon(R) CPU E3-1225 V2 @ 3.20GHz. 4GB RAM
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): localhost
  • Database
    • MongoDB version: v3.4.15-2.13
    • Storage engine: rocksdb
    • Hardware: same that server
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): localhost
@stale
Copy link

stale bot commented Sep 18, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 18, 2018
@stale stale bot closed this as completed Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant