php - Copy as Curl in Chrome with POST says error 302 moved temporarily -


i'm trying out in shell curl before developing full app. need obtain information public site input in 2 lines of info , returns one-line response in browser. when enter in data in chrome, under chrome developer tools under network shows post command status '302 moved temporarily.' when run 'copy curl' data curl directly in shell receive "

this document requested has moved temporarily.

it's @ href="http....... url sending me same except http instead of https. there way can use curl this? if not there tools should examining? need dozens of similar sites. can using human emulation commands i'd prefer more stealthy doesn't launch browser windows. chrome data http://oi42.tinypic.com/2rxjiax.jpg

since hasn't been answered yet, , got here looking solution problem had me stumped while maybe helps someone:

i getting '302 moved temporarily' , re-direct on same resource trying post form had been populated editing. had set email input required, , on editing set disabled in html (as user not allowed change once stored).

the problem (after studying of headers, seemed identical) solved changing html disabled attribute readonly. difference made email appeared in post string.

now i'm no expert on http, understand it, server must somehow have known (perhaps cache?) html5 boolean attribute 'required' had been set when didn't receive field post. perhaps knows can explain because still baffles me, anyway there's solution.

this on php script on iis 8 (i know, it's work!) although problem had nothing php.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -