重定向到POST的HttpWebRequest [英] redirecting to POST HttpWebRequest

查看:101
本文介绍了重定向到POST的HttpWebRequest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计们, 我想使用的HttpWebRequest POST数据到外部URL,那么我需要将用户重定向到外部URL在那里,我只是张贴了我的数据,可以在首位实现这一目标?

Hey Folks, I'm trying to POST data to an external url using HttpWebRequest, then i need to redirect the user to the external url where which i just POSTed my data, can this be achieved on the first place ?

推荐答案

除非有一些需要在服务器端做你应该做的JS在客户端。

Unless there is something that needs to be done on the server side you should probably do this from JS on the client side.

只是programtically使用JS将采取两者的发布和重定向照顾提交表单。

Just submit a form programtically using JS that will take care of both the posting and the redirect.

这篇关于重定向到POST的HttpWebRequest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆