login about faq

I will be POSTing multi-part form data using SynchronousRequest to a https website. Two questions....

  1. Assuming I have FollowRedirects = True, do I receive a notification that a 301 was returned and if so where will it be? Also, can I pick up the new url and port from somewhere?
  2. Same circumstances but with FollowRedirects = False, same questions as (1).

Thank you Ian

p.s. As an explain - I have been told that if the program receives a 301 (or other redirect) to a NONE-https url then the program should treat it as an error and not follow the redirect. If I get a valid https redirect the program should remember the url and port and use it for the current and future posts.

asked Apr 16 at 13:27

ianb's gravatar image

ianb
11


Ooooo! I just found the HTTPRedirect event - that looks like the way to do it!

link

answered Apr 16 at 18:31

ianb's gravatar image

ianb
11

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:

×13

Asked: Apr 16 at 13:27

Seen: 387 times

Last updated: Apr 16 at 18:31

powered by OSQA